mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2003-11-06 Andrew Cagney <cagney@redhat.com>
* valops.c (destructor_name_p): Replace STREQN with strncmp. * top.c (command_line_input): Ditto. * objc-exp.y (yylex): Ditto. * minsyms.c (prim_record_minimal_symbol_and_info): Ditto. * jv-exp.y (yylex): Ditto. * f-exp.y (yylex): Ditto. * event-top.c (command_line_handler): Ditto. * environ.c (get_in_environ): Ditto. (set_in_environ): Ditto. * dwarfread.c (handle_producer): Ditto. * dbxread.c (process_one_symbol): Ditto. * c-typeprint.c (c_type_print_base): Ditto. * c-exp.y (yylex): Ditto. 2003-11-06 Andrew Cagney <cagney@redhat.com> * mi-cmd-var.c (mi_cmd_var_set_format): Replace STREQN with strncmp.
This commit is contained in:
@@ -106,7 +106,7 @@ get_in_environ (const struct environ *e, const char *var)
|
||||
char *s;
|
||||
|
||||
for (; (s = *vector) != NULL; vector++)
|
||||
if (STREQN (s, var, len) && s[len] == '=')
|
||||
if (strncmp (s, var, len) == 0 && s[len] == '=')
|
||||
return &s[len + 1];
|
||||
|
||||
return 0;
|
||||
@@ -123,7 +123,7 @@ set_in_environ (struct environ *e, const char *var, const char *value)
|
||||
char *s;
|
||||
|
||||
for (i = 0; (s = vector[i]) != NULL; i++)
|
||||
if (STREQN (s, var, len) && s[len] == '=')
|
||||
if (strncmp (s, var, len) == 0 && s[len] == '=')
|
||||
break;
|
||||
|
||||
if (s == 0)
|
||||
|
||||
Reference in New Issue
Block a user