From f086f264bb68321791cc16e7d49c34f489e55066 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Mon, 11 Nov 2013 13:23:11 +0000 Subject: [PATCH] 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 --- source/wserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/wserv.c b/source/wserv.c index 39627f4..f552daf 100644 --- a/source/wserv.c +++ b/source/wserv.c @@ -73,7 +73,7 @@ int main (int argc, char **argv) * can grab the size of the tty, and have it changed. */ tmp = ttyname(0); - sprintf(stuff, "%s\n", tmp); + snprintf(stuff, sizeof stuff, "%s\n", tmp); t = write(s, stuff, strlen(stuff)); term_init(NULL); printf("t is %d", t);