@@ -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
@@ -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))
nr = fread(buf, 1, want, file);