fwrite fix

SCCS-file: date.c
SCCS-SID: 4.2
This commit is contained in:
Arthur David Olson
2012-07-18 03:01:56 -04:00
committed by Paul Eggert
parent c892ccd1fa
commit 07091d3249
+1 -1
View File
@@ -549,7 +549,7 @@ struct tm * tmp;
size += INCR;
cp = realloc(cp, size);
}
(void) fwrite(cp, 1, size, fp);
(void) fwrite(cp, 1, result, fp);
free(cp);
}