summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2005-04-07 19:26:35 +0000
committernectar <nectar@FreeBSD.org>2005-04-07 19:26:35 +0000
commit32eab0f9701ae4bf318643e183173ff522245f7b (patch)
tree4d936cd75bf9743b0057e10836070a4f8b186465 /libexec
parent0518f8286a7116705d5f27978109b144253840ed (diff)
downloadFreeBSD-src-32eab0f9701ae4bf318643e183173ff522245f7b.zip
FreeBSD-src-32eab0f9701ae4bf318643e183173ff522245f7b.tar.gz
An array was mistaken for a pointer in the previous commit.
Noticed by: tinderbox, stefanf Pointy hat to: nectar
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rexecd/rexecd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c
index 02c6843..05470ff 100644
--- a/libexec/rexecd/rexecd.c
+++ b/libexec/rexecd/rexecd.c
@@ -136,9 +136,9 @@ doit(struct sockaddr *fromp)
{
char *cmdbuf, *cp;
int maxcmdlen;
- char user[16], pass[16];
+ char userbuf[16], pass[16];
struct passwd *pwd, pwd_storage;
- char *pwdbuf;
+ char *pwdbuf, *user;
size_t pwdbuflen;
int fd, r, sd;
u_short port;
@@ -189,7 +189,8 @@ doit(struct sockaddr *fromp)
if (connect(sd, fromp, fromp->sa_len) < 0)
exit(1);
}
- getstr(user, sizeof(user), "username");
+ user = userbuf;
+ getstr(userbuf, sizeof(userbuf), "username");
getstr(pass, sizeof(pass), "password");
getstr(cmdbuf, maxcmdlen, "command");
(void) alarm(0);
OpenPOWER on IntegriCloud