summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2008-07-02 00:12:06 +0000
committerNed Ludd <solar@gentoo.org>2008-07-02 00:12:06 +0000
commitd4f72438e42f93117fb2633d5d435e475f7e69e2 (patch)
tree6310f5f208385541378934aadf2dc59bc54b8355
parentfa0b56db76e5c4c5a375930fad358ea5a364d328 (diff)
- fix trivial exploit vector when setXid
-rw-r--r--coreutils/uname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c
index 2eecb5d6d..34600e7a9 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -89,7 +89,7 @@ int uname_main(int argc, char **argv)
delta = utsname_offset;
do {
if (toprint & 1) {
- printf(((char *)(&uname_info)) + *delta);
+ printf("%s", ((char *)(&uname_info)) + *delta);
if (toprint > 1) {
bb_putchar(' ');
}