summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-12-16 14:03:17 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-16 07:45:08 -1000
commit92c15238b6043c927a1f8bc8fd541086e1d5f306 (patch)
tree8aa0b207dcb66e9db782c677bcd4f44f7b834f82 /libdivecomputer.c
parent2f9960f20b292a2fa8c01da4a0c4600c71f4fc3a (diff)
downloadsubsurface-92c15238b6043c927a1f8bc8fd541086e1d5f306.tar.gz
Make sure that the user entered nickname is never truncated
If the sizes of the two char buffers in set_dc_nickname() (nickname) and remember_dc() (buffer) are at least twice the size of the allowed maximum number of characters (sizeof(gunichar) = 2) set by gtk_entry_set_max_length() for the user nickname, no truncation will accur then calling snprintf() and cleanedup_nickname() on said buffers. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
0 files changed, 0 insertions, 0 deletions