Fix inprogress file name truncation

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@348 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2007-03-31 15:17:26 +00:00
parent 731caa2fcf
commit c0b1bdfa8e
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ gen_inprogress_lock (int game, pid_t pid, char* ttyrec_filename)
fl.l_start = 0;
fl.l_len = 0;
len = strlen(globalconfig.dglroot) + strlen(me->username) + strlen(ttyrec_filename) + 13;
len = strlen(globalconfig.dglroot) + strlen(myconfig[game]->inprogressdir) + strlen(me->username) + strlen(ttyrec_filename) + 13;
lockfile = calloc(len, sizeof(char));
snprintf (lockfile, len, "%s%s%s:%s", globalconfig.dglroot, myconfig[game]->inprogressdir,