Browse Source

libcompat: Use SEEK_SET instead of a literal value on fseek

Guillem Jover 18 years ago
parent
commit
c705c776ae
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      libcompat/vsnprintf.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-09-14  Guillem Jover  <guillem@debian.org>
+
+	* libcompat/vsnprintf.c (vsnprintf): Use SEEK_SET instead of a 0
+	literal on fseek.
+
 2008-09-14  Guillem Jover  <guillem@debian.org>
 
 	* libcompat/vsnprintf.c (vsnprintf): Change size and nr types from

+ 1 - 1
libcompat/vsnprintf.c

@@ -56,7 +56,7 @@ vsnprintf(char *buf, size_t maxsize, const char *fmt, va_list al)
 		want = total;
 	if (fflush(file))
 		return -1;
-	if (fseek(file, 0, 0))
+	if (fseek(file, 0, SEEK_SET))
 		return -1;
 
 	nr = fread(buf, 1, want, file);