summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitezslav Cizek <vcizek@suse.cz>2014-03-26 23:01:22 +0200
committerSergey Poznyakoff <gray@gnu.org>2014-03-26 23:01:22 +0200
commit852895847f41f9b5f268fc84f892c94497f4ffbe (patch)
treedfcf80e60dce66fa6b10568910473f9f53c03aab
parentb0902369e789c9aadf584799889a34637688d601 (diff)
downloadtar-852895847f41f9b5f268fc84f892c94497f4ffbe.tar.gz
fix an eternal loop in handle_option
* src/names.c (handle_option): increment loop counter
-rw-r--r--src/names.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/names.c b/src/names.c
index 9fc0ad58..594e7fdd 100644
--- a/src/names.c
+++ b/src/names.c
@@ -439,7 +439,7 @@ handle_option (const char *str)
int i;
while (*str && isspace (*str))
- ;
+ ++str;
if (*str != '-')
return 1;