openbsd-ports/sysutils/wmcube-gdk/patches/patch-wmcube_c
wilfried 0afd1343de update to wmcube-gdk-0.98p1
upstream author incorporated my patches
2001-08-30 08:58:05 +00:00

31 lines
712 B
Plaintext

$OpenBSD: patch-wmcube_c,v 1.2 2001/08/30 08:58:06 wilfried Exp $
--- wmcube.c.orig Tue Aug 28 12:08:13 2001
+++ wmcube.c Thu Aug 30 10:50:40 2001
@@ -1250,7 +1250,7 @@ int loadobj(char *filename)
exit(0);
}
- fscanf(fp, "%s", tmp);
+ fscanf(fp, "%63s", tmp);
if (strcmp(tmp, "WMCUBE_COORDINATES") != 0) {
printf
@@ -1259,7 +1259,7 @@ int loadobj(char *filename)
exit(0);
}
- fscanf(fp, "%s", tmp);
+ fscanf(fp, "%63s", tmp);
counter = atoi(tmp);
while ((strcmp(tmp, "WMCUBE_LINES") != 0)
@@ -1280,7 +1280,7 @@ int loadobj(char *filename)
fclose(fp);
exit(0);
}
- fscanf(fp, "%s", tmp);
+ fscanf(fp, "%63s", tmp);
if (feof(fp)) {
printf