]> skyeroc.xyz Git - dgamelaunch/commitdiff
Same snprintf size bug again.
authorJilles Tjoelker <jilles@stack.nl>
Tue, 6 Jan 2004 13:16:31 +0000 (13:16 +0000)
committerJilles Tjoelker <jilles@stack.nl>
Tue, 6 Jan 2004 13:16:31 +0000 (13:16 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@105 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index d3d177118b0b9a8c6330d6edc7e91d428518f403..aad03355f9499796baf777e90b5392d8edbd1c89 100644 (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 ();