diff options
author | Roy Marples <roy@marples.name> | 2007-10-11 23:17:53 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-11 23:17:53 +0000 |
commit | e3bc6666d6d5bd8922ca10652a2d04577357fa71 (patch) | |
tree | f88c80fc6ce912790a347bbcd53a8df80e15c152 /src/librc-misc.c | |
parent | 14287ddd80b3c2d7eb44b3bee77caab4c4d6eca2 (diff) |
malloc data size, not pointer size
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r-- | src/librc-misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |