summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorNed Ludd2008-07-02 00:12:06 +0000
committerNed Ludd2008-07-02 00:12:06 +0000
commitd4f72438e42f93117fb2633d5d435e475f7e69e2 (patch)
tree6310f5f208385541378934aadf2dc59bc54b8355 /coreutils
parentfa0b56db76e5c4c5a375930fad358ea5a364d328 (diff)
downloadbusybox-d4f72438e42f93117fb2633d5d435e475f7e69e2.zip
busybox-d4f72438e42f93117fb2633d5d435e475f7e69e2.tar.gz
- fix trivial exploit vector when setXid
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/uname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c
index 2eecb5d..34600e7 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(' ');
}