Просмотр исходного кода

fix an eternal loop in handle_option

* src/names.c (handle_option): increment loop counter
Vitezslav Cizek 11 лет назад
Родитель
Сommit
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;