Commit b50d9339 by Segher Boessenkool Committed by Hartmut Penner

* opts.c (wrap_help): Fix overflow.

From-SVN: r74737
parent a7833d6a
2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
* opts.c (wrap_help): Fix overflow.
2003-12-17 Fred Fish <fnf@redhat.com> 2003-12-17 Fred Fish <fnf@redhat.com>
* configure.in: Remove code to examine linker scripts and set * configure.in: Remove code to examine linker scripts and set
......
...@@ -1829,7 +1829,7 @@ wrap_help (const char *help, const char *item, unsigned int item_width) ...@@ -1829,7 +1829,7 @@ wrap_help (const char *help, const char *item, unsigned int item_width)
len = i; len = i;
else if ((help[i] == '-' || help[i] == '/') else if ((help[i] == '-' || help[i] == '/')
&& help[i + 1] != ' ' && help[i + 1] != ' '
&& ISALPHA (help[i - 1])) && i > 0 && ISALPHA (help[i - 1]))
len = i + 1; len = i + 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment