diff options
author | 2002-06-22 09:03:57 +0000 | |
---|---|---|
committer | 2002-06-22 09:03:57 +0000 | |
commit | c55d7cf96b99dc878f7fae1f873fb51e2d18d1ab (patch) | |
tree | 4ec1c2f2ad4e892bc85a9df0ef2372e6da13e0d4 /bin/systrace/util.c | |
parent | remove BUGS section; this library uses strtok_r(3) now. (diff) | |
download | wireguard-openbsd-c55d7cf96b99dc878f7fae1f873fb51e2d18d1ab.tar.xz wireguard-openbsd-c55d7cf96b99dc878f7fae1f873fb51e2d18d1ab.zip |
uid are unsigned outside of germany
Diffstat (limited to 'bin/systrace/util.c')
-rw-r--r-- | bin/systrace/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/util.c b/bin/systrace/util.c index 74866fc18ef..94cef3444fc 100644 --- a/bin/systrace/util.c +++ b/bin/systrace/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.6 2002/06/18 01:54:31 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.7 2002/06/22 09:03:57 deraadt Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -76,7 +76,7 @@ uid_to_name(uid_t uid) struct passwd *pw; if ((pw = getpwuid(uid)) == NULL) - snprintf(buf, sizeof(buf), "uid %d", uid); + snprintf(buf, sizeof(buf), "uid %u", uid); else snprintf(buf, sizeof(buf), "%s", pw->pw_name); |