summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/nmakehlp.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c
index 41419ef..5fb7917 100644
--- a/win/nmakehlp.c
+++ b/win/nmakehlp.c
@@ -5,12 +5,13 @@
* This is used to fix limitations within nmake and the environment.
*
* Copyright (c) 2002 by David Gravereaux.
+ * Copyright (c) 2006 by Pat Thoyts
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* ----------------------------------------------------------------------------
- * RCS: @(#) $Id: nmakehlp.c,v 1.16 2007/04/16 13:36:36 dkf Exp $
+ * RCS: @(#) $Id: nmakehlp.c,v 1.17 2007/05/04 18:04:18 patthoyts Exp $
* ----------------------------------------------------------------------------
*/
@@ -506,7 +507,7 @@ GrepForDefine(
/*
* GetVersionFromFile --
* Looks for a match string in a file and then returns the version
- * following the match where a version is anything acceptable to *
+ * following the match where a version is anything acceptable to
* package provide or package ifneeded.
*/
@@ -518,7 +519,7 @@ GetVersionFromFile(
size_t cbBuffer = 100;
static char szBuffer[100];
char *szResult = NULL;
- FILE *fp = fopen(filename, "r");
+ FILE *fp = fopen(filename, "rt");
if (fp != NULL) {
/*
@@ -557,3 +558,13 @@ GetVersionFromFile(
}
return szResult;
}
+
+/*
+ * Local variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * indent-tabs-mode: t
+ * tab-width: 8
+ * End:
+ */