From e3bc6666d6d5bd8922ca10652a2d04577357fa71 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 11 Oct 2007 23:17:53 +0000 Subject: malloc data size, not pointer size --- src/librc-misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librc-misc.c') diff --git a/src/librc-misc.c b/src/librc-misc.c index 6d90b02c..d5b66b02 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -58,7 +58,7 @@ char *rc_strcatpaths (const char *path1, const char *paths, ...) } va_end (ap); - pathp = path = xmalloc (length * sizeof (char *)); + pathp = path = xmalloc (length * sizeof (char)); memset (path, 0, length); i = strlen (path1); memcpy (path, path1, i); -- cgit v1.2.3