(main): Use strncmp when testing for gstabs+ vs gstabs.

From-SVN: r2727
This commit is contained in:
Richard Stallman 1992-11-09 20:10:20 +00:00
parent 34536f93eb
commit 166792f0ff
1 changed files with 2 additions and 1 deletions

View File

@ -3126,7 +3126,8 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
if (write_symbols == DBX_DEBUG && !strncmp (str, "ggdb", len)
&& len >= 2)
use_gnu_debug_info_extensions = 1;
else if (write_symbols == DBX_DEBUG && !strcmp (str, "gstabs+"))
else if (write_symbols == DBX_DEBUG && !strncmp (str, "gstabs+", len)
&& len >= 7)
use_gnu_debug_info_extensions = 1;
else if (write_symbols == DBX_DEBUG
&& !strncmp (str, "gstabs", len) && len >= 2)