Use a more robust idiom When converting sprintf() to snprintf()
authorMarc Balmer <marc@msys.ch>
Thu, 9 Aug 2012 05:08:05 +0000 (07:08 +0200)
committerJon Trulson <jon@radscan.com>
Thu, 9 Aug 2012 17:52:17 +0000 (11:52 -0600)
commitbb217976847b3311fdfddc603ae37709cf8a32a5
treeb2f6c6806c866b368cf1dbe12ea56f9af6ddce48
parent117258766b1ef89619da688ffa84e058b9df3b65
Use a more robust idiom When converting sprintf() to snprintf()

don't use the idiom

char foo[BUFSIZ];
snprintf(foo, BUFSIZ, ....);

but

char foo[BUFSIZ];
snprintf(foo, sizeo foo, ....);

because this will automatically catch situations where the size of foo
is later changed, e.g. like  foo[BUFSIZ + 8];

Fix another use of sprintf.
cde/programs/dtaction/Main.c
cde/programs/dtterm/util/logger.c