1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/palm/makeztxt/files/patch-libztxt-ztxt_init.c
Andrey Slusar 4f7ee9fa49 Try to correct works when compiled with gcc4
Reported by:	Slawa Olhovchenkov
2007-06-10 08:09:25 +00:00

12 lines
457 B
C

--- libztxt/ztxt_init.c.orig Mon May 28 20:23:08 2007
+++ libztxt/ztxt_init.c Mon May 28 20:23:16 2007
@@ -61,7 +61,7 @@
/* Initialize the Palm DB header structure */
header = ztxtdb->dbHeader;
- strcpy(header->name, "New zTXT database");
+ strcpy((char *)header->name, "New zTXT database");
header->attributes = htons(dmHdrAttrBackup);
header->version = htons(ZTXT_VERSION);
header->creationDate = htonl(time(NULL) + PALM_CTIME_OFFSET);