mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-26 12:25:31 +00:00
2011-03-02 Michael Snyder <msnyder@vmware.com>
* printcmd.c (print_scalar_formatted): Use strncpy for safety.
This commit is contained in:
parent
c38d16a719
commit
daac021a6c
@ -1,5 +1,7 @@
|
||||
2011-03-02 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* printcmd.c (print_scalar_formatted): Use strncpy for safety.
|
||||
|
||||
* infcall.c (call_function_by_hand): Add break statements for lint.
|
||||
|
||||
* utils.c (parse_escape): Escape the escape char.
|
||||
|
@ -533,7 +533,7 @@ print_scalar_formatted (const void *valaddr, struct type *type,
|
||||
if (*cp == '\0')
|
||||
cp--;
|
||||
}
|
||||
strcpy (buf, cp);
|
||||
strncpy (buf, cp, sizeof (bits));
|
||||
fputs_filtered (buf, stream);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user