summary refs log tree commit diff
path: root/manual/memory.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/memory.texi')
-rw-r--r--manual/memory.texi3
1 files changed, 1 insertions, 2 deletions
diff --git a/manual/memory.texi b/manual/memory.texi
index d55a4d4fc3..958e1d14c5 100644
--- a/manual/memory.texi
+++ b/manual/memory.texi
@@ -230,9 +230,8 @@ char *
 savestring (const char *ptr, size_t len)
 @{
   register char *value = (char *) xmalloc (len + 1);
-  memcpy (value, ptr, len);
   value[len] = '\0';
-  return value;
+  return (char *) memcpy (value, ptr, len);
 @}
 @end group
 @end smallexample