diff options
author | Rob Landley <rob@landley.net> | 2007-04-29 19:55:21 -0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-04-29 19:55:21 -0400 |
commit | 0c93f6c7ab7aab56b39793a2317a9bff16b8ae04 (patch) | |
tree | 275dcaf29f05b6f15cf87327746d6e3c3d07e5ac /toys/toysh.c | |
parent | c92fde0bc75ade9d06c0d843c4693b9e2e338938 (diff) | |
download | toybox-0c93f6c7ab7aab56b39793a2317a9bff16b8ae04.tar.gz |
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
compiler so much.
Diffstat (limited to 'toys/toysh.c')
-rw-r--r-- | toys/toysh.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |