aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ln.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-12-12 06:49:33 +0000
committerRob Landley <rob@landley.net>2005-12-12 06:49:33 +0000
commitcdbae77823d82ad0451007f1b192f782c33f2764 (patch)
treee082e3967b928845a03ceecea22833454aea646f /coreutils/ln.c
parent37310ea0574e83a877a263646cc58ecfbe857fbd (diff)
downloadbusybox-cdbae77823d82ad0451007f1b192f782c33f2764.tar.gz
printf() arguments shouldn't be passed straight from user supplied data.
(Security thingy.)
Diffstat (limited to 'coreutils/ln.c')
-rw-r--r--coreutils/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c
index 6751e9093..dcb70d40f 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;
}