mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-27 07:34:44 +02:00
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:
parent
731caa2fcf
commit
c0b1bdfa8e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user