summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-12-15 13:46:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-15 19:53:07 -1000
commitbe9d924cf833fd4f4de478cbc5dccbb3775acc3d (patch)
tree06fbd08f18e70710f71912b00a5ae0a81e3c257c /uemis.c
parent371ace39b54266b9833d90d9d8e863b8bea3ac8f (diff)
downloadsubsurface-be9d924cf833fd4f4de478cbc5dccbb3775acc3d.tar.gz
Reserve enough memory when storing a DC's nickname
in gtk-gui.c: The input text field in set_dc_nickname() has a limit of 68 unicode characters, which are 136 bytes. In remember_dc(), to make sure that this nickname, the deviceid (4 bytes) and also the extra characters (",{}") always fit wihout truncation (from snprintf) in the allocated stack buffer, we increase the size of the buffer to 256 bytes. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
0 files changed, 0 insertions, 0 deletions