summaryrefslogtreecommitdiff
path: root/os/strlcpy.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-31 22:17:35 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:06 -0800
commit43fa1274263f76faaca995f6e498bc3179a857b8 (patch)
tree94c4e07de923543ba61d767ab62944969c7b847a /os/strlcpy.c
parent71a89d97332cc181becc5a5f73166e642f96c076 (diff)
Remove bad code from DoShowOptions (Xorg -showopts handler)
When we want to print a string, it's okay to just print it. We don't need to first allocate a buffer 2 bytes bigger than the string, copy the entire string unmodified to the buffer, print the buffer, and then leak the buffer (though we AbortDDX 8 lines later, and then just in case we survived that, call exit as well, so the leak is short lived, just oh so pointless). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'os/strlcpy.c')
0 files changed, 0 insertions, 0 deletions