summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-19 09:33:15 +1000
committerDamien Miller <djm@mindrot.org>2003-05-19 09:33:15 +1000
commit3867bf3e7a8b9ec6b49a07a7728797e96eae8aa5 (patch)
tree4e428a91d69bfdb1513499e6eeb3911133e2208a
parent5b5ca19ef058e069937e23ae0058c22bf62abd23 (diff)
unfuck
-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)
52 len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name)); 52 len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name));
53 cp = xmalloc(len); 53 cp = xmalloc(len);
54 54
55 i = snprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, '\0', 55 i = snprintf(cp, len, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, '\0',
56 pw->pw_name, '\0', len); 56 pw->pw_name, '\0');
57 if (usrinfo(SETUINFO, cp, i) == -1) 57 if (usrinfo(SETUINFO, cp, i) == -1)
58 fatal("Couldn't set usrinfo: %s", strerror(errno)); 58 fatal("Couldn't set usrinfo: %s", strerror(errno));
59 debug3("AIX/UsrInfo: set len %d", i); 59 debug3("AIX/UsrInfo: set len %d", i);