diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-aix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index 02f185955..f022bd440 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -41,8 +41,8 @@ aix_usrinfo(struct passwd *pw) | |||
41 | char *cp; | 41 | char *cp; |
42 | 42 | ||
43 | cp = xmalloc(16 + 2 * strlen(pw->pw_name)); | 43 | cp = xmalloc(16 + 2 * strlen(pw->pw_name)); |
44 | i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c%c", pw->pw_name, 0, | 44 | i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, 0, |
45 | pw->pw_name, 0, 0); | 45 | pw->pw_name, 0); |
46 | if (usrinfo(SETUINFO, cp, i) == -1) | 46 | if (usrinfo(SETUINFO, cp, i) == -1) |
47 | fatal("Couldn't set usrinfo: %s", strerror(errno)); | 47 | fatal("Couldn't set usrinfo: %s", strerror(errno)); |
48 | debug3("AIX/UsrInfo: set len %d", i); | 48 | debug3("AIX/UsrInfo: set len %d", i); |