From: Pasi Kallinen Date: Mon, 3 Oct 2011 13:47:19 +0000 (+0000) Subject: Bugfix: when using sqlite and registering a nick with length longer or equal to max_n... X-Git-Tag: v1.6.1-roc-dev~120 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=9fc78de52ef053ac989a81d812c637bdaecf025e;p=dgamelaunch Bugfix: when using sqlite and registering a nick with length longer or equal to max_newnick_len, it may have succeeded even if such a nick already existed. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@590 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/TODO b/TODO index 1217da7..b141ac5 100644 --- 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 - diff --git a/dgamelaunch.c b/dgamelaunch.c index d2c3858..28e8a06 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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 */