The following commit has been merged in the master branch:
commit c705c776ae4576a6c596d9ab015dc6b6442b408f
Author: Guillem Jover <[EMAIL PROTECTED]>
Date:   Sat Sep 13 19:21:38 2008 +0300

    libcompat: Use SEEK_SET instead of a literal value on fseek

diff --git a/ChangeLog b/ChangeLog
index e3f4318..900295d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-09-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+       * libcompat/vsnprintf.c (vsnprintf): Use SEEK_SET instead of a 0
+       literal on fseek.
+
+2008-09-14  Guillem Jover  <[EMAIL PROTECTED]>
+
        * libcompat/vsnprintf.c (vsnprintf): Change size and nr types from
        unsigled long to size_t. Always return the amount that would be
        written regardless of any truncation. Do not read one byte less from
diff --git a/libcompat/vsnprintf.c b/libcompat/vsnprintf.c
index 314c6b3..ab52af8 100644
--- a/libcompat/vsnprintf.c
+++ b/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);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to