summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2005-12-12 06:49:33 +0000
committerRob Landley2005-12-12 06:49:33 +0000
commitcdbae77823d82ad0451007f1b192f782c33f2764 (patch)
treee082e3967b928845a03ceecea22833454aea646f
parent37310ea0574e83a877a263646cc58ecfbe857fbd (diff)
downloadbusybox-cdbae77823d82ad0451007f1b192f782c33f2764.zip
busybox-cdbae77823d82ad0451007f1b192f782c33f2764.tar.gz
printf() arguments shouldn't be passed straight from user supplied data.
(Security thingy.)
-rw-r--r--coreutils/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c
index 6751e90..dcb70d4 100644
--- a/coreutils/ln.c
+++ b/coreutils/ln.c
@@ -106,7 +106,7 @@ extern int ln_main(int argc, char **argv)
}
if (link_func(*argv, src) != 0) {
- bb_perror_msg(src);
+ bb_perror_msg("%s", src);
status = EXIT_FAILURE;
}