Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nss/common.h4
-rw-r--r--nss/passwd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/nss/common.h b/nss/common.h
index 7873b93..1561f38 100644
--- a/nss/common.h
+++ b/nss/common.h
@@ -100,8 +100,8 @@
#define NSS_BUFCHECK \
if ((NSS_ARGS(args)->buf.buffer==NULL)||(NSS_ARGS(args)->buf.buflen<=0)) \
{ \
- NSS_ARGS(args)->erange=1; \
- return NSS_STATUS_TRYAGAIN; \
+ NSS_ARGS(args)->erange=1; \
+ return NSS_STATUS_TRYAGAIN; \
}
/* this is the backend structure for Solaris */
diff --git a/nss/passwd.c b/nss/passwd.c
index 073cad8..b39a40c 100644
--- a/nss/passwd.c
+++ b/nss/passwd.c
@@ -114,7 +114,7 @@ static nss_status_t read_passwdstring(TFILE *fp,nss_XbyY_args_t *args)
buffer=(char *)malloc(buflen);
/* build the formatted string */
/* FIXME: implement proper buffer size checking */
- sprintf(buffer,"%s:%s:%d:%d:%s:%s:%s",
+ sprintf(buffer,"%s:%s:%d:%d:%s:%s:%s",
result.pw_name,result.pw_passwd,(int)result.pw_uid,(int)result.pw_gid,result.pw_gecos,
result.pw_dir,result.pw_shell);
/* copy the result back to the result buffer and free the temporary one */