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