aboutsummaryrefslogtreecommitdiff
path: root/manual/charset.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/charset.texi')
-rw-r--r--manual/charset.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/charset.texi b/manual/charset.texi
index b638323..a9b5cb4 100644
--- a/manual/charset.texi
+++ b/manual/charset.texi
@@ -1469,7 +1469,7 @@ mbstowcs_alloc (const char *string)
size = mbstowcs (buf, string, size);
if (size == (size_t) -1)
return NULL;
- buf = xrealloc (buf, (size + 1) * sizeof (wchar_t));
+ buf = xreallocarray (buf, size + 1, sizeof *buf);
return buf;
@}
@end smallexample