aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-thread-exited.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-03 12:32:40 +0930
committerAlan Modra <amodra@gmail.com>2023-08-03 21:20:33 +0930
commitad923ded82d0ede5a2506a9fbd0f5a5a6728e1a6 (patch)
tree60fc72cb334c014f1aed431154cf8f35d224135e /gdb/testsuite/gdb.python/py-thread-exited.c
parent75747be51e6d11287e12c4504f2607d36a0edfd2 (diff)
downloadbinutils-ad923ded82d0ede5a2506a9fbd0f5a5a6728e1a6.zip
binutils-ad923ded82d0ede5a2506a9fbd0f5a5a6728e1a6.tar.gz
binutils-ad923ded82d0ede5a2506a9fbd0f5a5a6728e1a6.tar.bz2
binutils sprintf optimisation
Avoid the use of sprintf with a "%s" format string, replacing with strcpy or stpcpy. Use sprintf return value rather than a later strlen. Don't use strcat where we can keep track of the end of a string output buffer. * dlltool.c (look_for_prog): memcpy prefix and strcpy prog_name. * dllwrap.c (look_for_prog): Likewise. * resrc.c (look_for_default): Likewise. Add quotes with memmove rather than allocating another buffer. * size.c (size_number): Use sprintf return value. * stabs.c (parse_stab_argtypes): Likewise. * windmc.c (write_bin): Likewes, and use stpcpy. * wrstabs.c: Similarly throughout.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-thread-exited.c')
0 files changed, 0 insertions, 0 deletions