diff options
Diffstat (limited to 'src/lib/libc/net/rcmdsh.c')
-rw-r--r-- | src/lib/libc/net/rcmdsh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/rcmdsh.c b/src/lib/libc/net/rcmdsh.c index 34a228d1e9..a472162711 100644 --- a/src/lib/libc/net/rcmdsh.c +++ b/src/lib/libc/net/rcmdsh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rcmdsh.c,v 1.11 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: rcmdsh.c,v 1.12 2007/09/02 15:19:17 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001, MagniComp | 4 | * Copyright (c) 2001, MagniComp |
@@ -151,7 +151,7 @@ rcmdsh(char **ahost, int rport, const char *locuser, const char *remuser, | |||
151 | for (n = 7; (p = strchr(++p, ' ')) != NULL; n++) | 151 | for (n = 7; (p = strchr(++p, ' ')) != NULL; n++) |
152 | continue; | 152 | continue; |
153 | rshprog = strdup(rshprog); | 153 | rshprog = strdup(rshprog); |
154 | ap = argv = malloc(sizeof(char *) * n); | 154 | ap = argv = calloc(sizeof(char *), n); |
155 | if (rshprog == NULL || argv == NULL) { | 155 | if (rshprog == NULL || argv == NULL) { |
156 | perror("rcmdsh"); | 156 | perror("rcmdsh"); |
157 | _exit(255); | 157 | _exit(255); |