1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/x11-wm/epiwm/files/patch-src__style_init.c
Martin Wilke b57e7139d4 - Fix build with gcc4
- Support USE_BDB

PR:		114078
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2007-06-29 08:32:36 +00:00

14 lines
461 B
C

--- src/style_init.c.orig Sat Feb 3 08:53:20 2001
+++ src/style_init.c Sun Jun 24 01:05:45 2007
@@ -77,8 +77,8 @@
tokens[i] = NULL;
i = 0;
strncpy(tmpstring, line, 100);
- (char *) tokens[i] = (char *) strtok(tmpstring, "\"");
- while (((char *) tokens[++i] = (char *) strtok(NULL, "\"")));
+ tokens[i] = (char *) strtok(tmpstring, "\"");
+ while ((tokens[++i] = (char *) strtok(NULL, "\"")));
tokens[i] = NULL;
return (tokens[index]);
}