ARI fix: "xasprintf" rule.
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
This commit is contained in:
parent
68c976001a
commit
549ba0f80a
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
ARI fix: "xasprintf" rule.
|
||||
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
|
||||
|
||||
2009-03-25 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* remote.c (remote_start_remote): In non-stop mode, call
|
||||
|
|
|
@ -1036,9 +1036,9 @@ sym_info (char *arg, int from_tty)
|
|||
/* Don't print the offset if it is zero.
|
||||
We assume there's no need to handle i18n of "sym + offset". */
|
||||
if (offset)
|
||||
xasprintf (&loc_string, "%s + %u", msym_name, offset);
|
||||
loc_string = xstrprintf ("%s + %u", msym_name, offset);
|
||||
else
|
||||
xasprintf (&loc_string, "%s", msym_name);
|
||||
loc_string = xstrprintf ("%s", msym_name);
|
||||
|
||||
/* Use a cleanup to free loc_string in case the user quits
|
||||
a pagination request inside printf_filtered. */
|
||||
|
|
Loading…
Add table
Reference in a new issue