2016-01-21 23:40:00 +01:00

16 lines
446 B
Plaintext

$NetBSD: patch-cd,v 1.7 2014/09/06 16:07:43 schnoebe Exp $
make sure a time_t fits in
--- sbr/fmt_scan.c.orig 2014-06-15 20:30:40.000000000 +0000
+++ sbr/fmt_scan.c
@@ -371,7 +371,7 @@ fmt_scan (struct format *format, char *s
char *savestr = NULL, *str = NULL;
char buffer[BUFSIZ], buffer2[BUFSIZ];
int i, c, ljust, n;
- int value = 0;
+ long long value = 0;
time_t t;
struct format *fmt;
struct comp *comp;