freebsd-ports/math/emc2/files/patch-f3d__u_hp700__prettydate.c
Brendan Fabeny a412831f99 -fix website and distfile information
-update to 2.16c
-clean up Makefile and pkg-descr
-add license information
-add a few minor patches

(Note: This port needs more work.)

PR:		148610
Approved by:	makc (co-mentor)
2010-09-04 12:24:10 +00:00

19 lines
554 B
C

--- ./f3d/u_hp700/prettydate.c.orig 2010-08-31 08:51:18.000000000 -0400
+++ ./f3d/u_hp700/prettydate.c 2010-08-31 08:52:44.000000000 -0400
@@ -6,7 +6,7 @@
{
time_t timevar;
struct tm *pttm;
- char buffer[6];
+ char buffer[7];
timevar=time(&timevar);
pttm = localtime(&timevar);
@@ -14,6 +14,6 @@
sprintf(buffer,"%02d%02d%02d",pttm->tm_year % 100,
pttm->tm_mon+1,
pttm->tm_mday);
- bcopy (buffer, date, 6);
+ bcopy (buffer, date, 7);
}