projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A few minor updates. ;-)
[oweals/busybox.git]
/
coreutils
/
printf.c
diff --git
a/coreutils/printf.c
b/coreutils/printf.c
index 5be3a67cb696340b192ecb0d9efcbcc48df23df1..5fd5ea30318a2cfbac8997599b3ad3135aca90a3 100644
(file)
--- a/
coreutils/printf.c
+++ b/
coreutils/printf.c
@@
-143,7
+143,7
@@
printf_main(int argc, char** argv)
int args_used;
exit_status = 0;
- if ( **(argv+1) == '-' ) {
+ if (
argc <= 1 ||
**(argv+1) == '-' ) {
usage (printf_usage);
}