diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-03 22:04:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-03 22:04:19 +0000 |
commit | c85bfcad5206598e7a1dc82c2144f3129518f7d6 (patch) | |
tree | aa2b080a40eef7c315710328a6b7373114df0ca4 | |
parent | 5c3d2b334a8a4ee723e31f49825d805f580281c3 (diff) | |
download | busybox-w32-c85bfcad5206598e7a1dc82c2144f3129518f7d6.tar.gz busybox-w32-c85bfcad5206598e7a1dc82c2144f3129518f7d6.tar.bz2 busybox-w32-c85bfcad5206598e7a1dc82c2144f3129518f7d6.zip |
ps: fixlet to disabled compat code
-rw-r--r-- | procps/ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c index e954da66f..f9d346ccf 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * Fix for SELinux Support:(c)2007 Hiroshi Shinji <shiroshi@my.email.ne.jp> | 6 | * Fix for SELinux Support:(c)2007 Hiroshi Shinji <shiroshi@my.email.ne.jp> |
7 | (c)2007 Yuichi Nakamura <ynakam@hitachisoft.jp> | 7 | * (c)2007 Yuichi Nakamura <ynakam@hitachisoft.jp> |
8 | * | 8 | * |
9 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. | 9 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
10 | */ | 10 | */ |
@@ -168,7 +168,7 @@ static void func_user(char *buf, int size, const procps_status_t *ps) | |||
168 | * as _right-justified_ IDs. Is it worth fixing? */ | 168 | * as _right-justified_ IDs. Is it worth fixing? */ |
169 | const char *user = get_cached_username(ps->uid); | 169 | const char *user = get_cached_username(ps->uid); |
170 | if (strlen(user) <= size) | 170 | if (strlen(user) <= size) |
171 | safe_strncpy(buf, get_cached_username(ps->uid), size+1); | 171 | safe_strncpy(buf, user, size+1); |
172 | else | 172 | else |
173 | sprintf(buf, "%*u", size, (unsigned)ps->uid); | 173 | sprintf(buf, "%*u", size, (unsigned)ps->uid); |
174 | #endif | 174 | #endif |