]> git.ipfire.org Git - thirdparty/util-linux.git/commit
term-utils: avoid error message string length couting errors
authorSami Kerola <kerolasa@iki.fi>
Sun, 11 May 2014 19:26:44 +0000 (20:26 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 May 2014 11:37:35 +0000 (13:37 +0200)
commitafbdd44fe3f01d33d7a22099ca806a18b14eea85
tree102a50e690e9499142fb330b133d0953cddb05d2
parent89dda6786882d37701b24fb430466b6af71c3f50
term-utils: avoid error message string length couting errors

Remove various magic numbers with either a string lenght count, or a
symbolic variable that is recognized by gdb.

[kzak@redhat.com: - use snprintf() everywhere,
                  - check snprintf() return code rather than mess up
                    the code with strlens]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/ttymsg.c