From 0c93f6c7ab7aab56b39793a2317a9bff16b8ae04 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 29 Apr 2007 19:55:21 -0400 Subject: Add readlink, xreadlink(), and change xrealloc() to not fight the stupid compiler so much. --- toys/toysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/toysh.c') diff --git a/toys/toysh.c b/toys/toysh.c index c383b89a..ef061bde 100644 --- a/toys/toysh.c +++ b/toys/toysh.c @@ -61,7 +61,7 @@ static char *parse_word(char *start, struct command **cmd) // Allocate more space if there's no room for NULL terminator. if (!((*cmd)->argc & 7)) - xrealloc((void **)cmd, + *cmd=xrealloc(*cmd, sizeof(struct command) + ((*cmd)->argc+8)*sizeof(char *)); (*cmd)->argv[(*cmd)->argc] = 0; return end; -- cgit v1.2.3