Same snprintf size bug again.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@105 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Jilles Tjoelker 2004-01-06 13:16:31 +00:00
parent 974f567f04
commit 488c628565
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ domailuser (char *username)
len = strlen(myconfig->spool) + strlen (username) + 1;
spool_fn = malloc (len + 1);
time (&now);
snprintf (spool_fn, len, "%s/%s", myconfig->spool, username);
snprintf (spool_fn, len + 1, "%s/%s", myconfig->spool, username);
/* print the enter your message line */
clear ();