summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-19 01:33:15 +0200
committerDamien Miller <djm@mindrot.org>2003-05-19 01:33:15 +0200
commit3867bf3e7a8b9ec6b49a07a7728797e96eae8aa5 (patch)
tree4e428a91d69bfdb1513499e6eeb3911133e2208a /openbsd-compat/port-aix.c
parent - (djm) KNF on auth-sia.[ch] (diff)
downloadopenssh-3867bf3e7a8b9ec6b49a07a7728797e96eae8aa5.tar.xz
openssh-3867bf3e7a8b9ec6b49a07a7728797e96eae8aa5.zip
unfuck
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 7a42810e9..f192a4e79 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -52,8 +52,8 @@ aix_usrinfo(struct passwd *pw)
len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name));
cp = xmalloc(len);
- i = snprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, '\0',
- pw->pw_name, '\0', len);
+ i = snprintf(cp, len, "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);