summary refs log tree commit diff
path: root/libio/obprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/obprintf.c')
-rw-r--r--libio/obprintf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libio/obprintf.c b/libio/obprintf.c
index a0c4df6293..a4d685a927 100644
--- a/libio/obprintf.c
+++ b/libio/obprintf.c
@@ -80,10 +80,7 @@ _IO_obstack_xsputn (_IO_FILE *fp, const void *data, _IO_size_t n)
       obstack_blank_fast (obstack, fp->_IO_write_end - fp->_IO_write_ptr);
     }
   else
-    {
-      memcpy (fp->_IO_write_ptr, data, n);
-      fp->_IO_write_ptr += n;
-    }
+    fp->_IO_write_ptr = __mempcpy (fp->_IO_write_ptr, data, n);
 
   return n;
 }