wserv.c: Apply patch from tau converting sprintf() to snprintf().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@439 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -73,7 +73,7 @@ int main (int argc, char **argv)
|
|||||||
* can grab the size of the tty, and have it changed.
|
* can grab the size of the tty, and have it changed.
|
||||||
*/
|
*/
|
||||||
tmp = ttyname(0);
|
tmp = ttyname(0);
|
||||||
sprintf(stuff, "%s\n", tmp);
|
snprintf(stuff, sizeof stuff, "%s\n", tmp);
|
||||||
t = write(s, stuff, strlen(stuff));
|
t = write(s, stuff, strlen(stuff));
|
||||||
term_init(NULL);
|
term_init(NULL);
|
||||||
printf("t is %d", t);
|
printf("t is %d", t);
|
||||||
|
|||||||
Reference in New Issue
Block a user