about summary refs log tree commit diff
path: root/libio/iowpadn.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iowpadn.c')
-rw-r--r--libio/iowpadn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iowpadn.c b/libio/iowpadn.c
index d94db71f2b..5600f3711c 100644
--- a/libio/iowpadn.c
+++ b/libio/iowpadn.c
@@ -65,7 +65,7 @@ _IO_wpadn (fp, pad, count)
       w = _IO_sputn (fp, (char *) padptr, PADSIZE);
       written += w;
       if (w != PADSIZE)
-	return w == EOF ? w : written;
+	return written;
     }
 
   if (i > 0)