From: Denis Vlasenko Date: Sun, 3 Feb 2008 22:04:19 +0000 (-0000) Subject: ps: fixlet to disabled compat code X-Git-Tag: 1_10_0~227 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c85bfcad5206598e7a1dc82c2144f3129518f7d6;p=oweals%2Fbusybox.git ps: fixlet to disabled compat code --- 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 @@ * * Copyright (C) 1999-2004 by Erik Andersen * Fix for SELinux Support:(c)2007 Hiroshi Shinji - (c)2007 Yuichi Nakamura + * (c)2007 Yuichi Nakamura * * Licensed under the GPL version 2, see the file LICENSE in this tarball. */ @@ -168,7 +168,7 @@ static void func_user(char *buf, int size, const procps_status_t *ps) * as _right-justified_ IDs. Is it worth fixing? */ const char *user = get_cached_username(ps->uid); if (strlen(user) <= size) - safe_strncpy(buf, get_cached_username(ps->uid), size+1); + safe_strncpy(buf, user, size+1); else sprintf(buf, "%*u", size, (unsigned)ps->uid); #endif