summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authormouring <mouring>2002-07-04 19:33:49 +0000
committermouring <mouring>2002-07-04 19:33:49 +0000
commit5f1f0366740b70a9614c23e8f667601dd0c78202 (patch)
tree32073dd4ca0c3d6ec9a81dd8f4cfe5287d9c2376 /openbsd-compat/port-aix.c
parente40c61efc6252e90afd7050d507fa6e386c7dd05 (diff)
downloadopenssh-5f1f0366740b70a9614c23e8f667601dd0c78202.tar.gz
- (bal) One too many nulls in ports-aix.c
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index 02f18595..f022bd44 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -41,8 +41,8 @@ aix_usrinfo(struct passwd *pw)
char *cp;
cp = xmalloc(16 + 2 * strlen(pw->pw_name));
- i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c%c", pw->pw_name, 0,
- pw->pw_name, 0, 0);
+ i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, 0,
+ pw->pw_name, 0);
if (usrinfo(SETUINFO, cp, i) == -1)
fatal("Couldn't set usrinfo: %s", strerror(errno));
debug3("AIX/UsrInfo: set len %d", i);