summaryrefslogtreecommitdiff
path: root/usr.sbin/quot/quot.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-06 20:41:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-06 20:41:09 +0000
commitabdab9264887b198168dac150a9bbff44a774868 (patch)
tree26c311697fe239df4698e550f705fd8ef5a9a932 /usr.sbin/quot/quot.c
parentcde63a0b937f284da8b2903ae196fc5bfb998ea8 (diff)
uid_t and gid_t, and use %u
Diffstat (limited to 'usr.sbin/quot/quot.c')
-rw-r--r--usr.sbin/quot/quot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index cc5857abded..5229b7024f5 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.5 1998/07/08 19:43:23 millert Exp $ */
+/* $OpenBSD: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $ */
/* $NetBSD: quot.c,v 1.7.4.1 1996/05/31 18:06:36 jtc Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: quot.c,v 1.5 1998/07/08 19:43:23 millert Exp $";
+static char rcsid[] = "$Id: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -244,7 +244,8 @@ user(uid)
if (!(pwd = getpwuid(uid))) {
if (usr->name = (char *)malloc(7))
- sprintf(usr->name, "#%d", uid);
+ sprintf(usr->name, "#%u",
+ uid);
} else {
if (usr->name = (char *)
malloc(strlen(pwd->pw_name) + 1))