Преглед изворни кода

fix an eternal loop in handle_option

* src/names.c (handle_option): increment loop counter
Vitezslav Cizek пре 11 година
родитељ
комит
852895847f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/names.c

+ 1 - 1
src/names.c

@@ -439,7 +439,7 @@ handle_option (const char *str)
   int i;
 
   while (*str && isspace (*str))
-    ;
+    ++str;
   if (*str != '-')
     return 1;