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:
parent
974f567f04
commit
488c628565
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue