]> skyeroc.xyz Git - dgamelaunch/commitdiff
Bugfix: when using sqlite and registering a nick with length longer or equal to max_n...
authorPasi Kallinen <paxed@alt.org>
Mon, 3 Oct 2011 13:47:19 +0000 (13:47 +0000)
committerPasi Kallinen <paxed@alt.org>
Mon, 3 Oct 2011 13:47:19 +0000 (13:47 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@590 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

TODO
dgamelaunch.c

diff --git a/TODO b/TODO
index 1217da788a406da34c3751fa21e38b29b46ca191..b141ac57494c822b67b5685bc9448875afbee923 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1,9 @@
+%t format variable: path+filename of the finished ttyrec, in postcommands
+
+
+< kerio> paxed: it would also be cool to have %g and %s work within a game definition too
+
+< kerio> paxed: is this intended behavior? i can't set two different spooldirs for two different games
 
 
 [22:45] < kerio> paxed: dgamelaunch bug! :D - you *need* a file called dgamelaunch in the root of the jail - 
index d2c3858663b068079194e839a3413b52b37cd582..28e8a0629b67350ce16d02ae93b5a26d0bd01d4b 100644 (file)
@@ -1906,6 +1906,8 @@ userexist (char *cname, int isnew)
     char *qbuf;
 
     char tmpbuf[DGL_PLAYERNAMELEN+2];
+
+    memset(tmpbuf, 0, DGL_PLAYERNAMELEN+2);
     strncpy(tmpbuf, cname, (isnew ? globalconfig.max_newnick_len : DGL_PLAYERNAMELEN));
 
     /* Check that the nick doesn't interfere with already registered nicks */