diff options
Diffstat (limited to 'win/nmakehlp.c')
-rw-r--r-- | win/nmakehlp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c index 54b3adc..06182ae 100644 --- a/win/nmakehlp.c +++ b/win/nmakehlp.c @@ -9,7 +9,7 @@ * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * ---------------------------------------------------------------------------- - * RCS: @(#) $Id: nmakehlp.c,v 1.3 2003/12/23 03:52:45 davygrvy Exp $ + * RCS: @(#) $Id: nmakehlp.c,v 1.4 2003/12/23 04:01:02 davygrvy Exp $ * ---------------------------------------------------------------------------- */ #include <windows.h> @@ -318,7 +318,7 @@ int GrepForDefine (const char *file, const char *string) { FILE *f; - char s1[250], s2[50], s3[50]; + char s1[51], s2[51], s3[51]; int r = 0; double d1; @@ -328,10 +328,10 @@ GrepForDefine (const char *file, const char *string) } do { - r = fscanf(f, "%s", s1); + r = fscanf(f, "%50s", s1); if (r == 1 && !strcmp(s1, "#define")) { /* get next two words */ - r = fscanf(f, "%s %s", s2, s3); + r = fscanf(f, "%50s %50s", s2, s3); if (r != 2) continue; /* is the first word what we're looking for? */ if (!strcmp(s2, string)) { |