]> skyeroc.xyz Git - dgamelaunch/commitdiff
Fix a bug; inprogress-dir is now configurable, so use that string length for str...
authorPasi Kallinen <paxed@alt.org>
Mon, 11 Jun 2007 19:40:51 +0000 (19:40 +0000)
committerPasi Kallinen <paxed@alt.org>
Mon, 11 Jun 2007 19:40:51 +0000 (19:40 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@361 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 7a83ce83ec18c2224f7ff454e93dfcffc29a0509..bf3382e338aa3462893704d8ea38debe9f6ba00e 100644 (file)
@@ -1494,7 +1494,7 @@ purge_stale_locks (int game)
       if (strncmp (dent->d_name, me->username, colon - dent->d_name))
         continue;
 
-      len = strlen (dent->d_name) + strlen(globalconfig.dglroot) + 12;
+      len = strlen (dent->d_name) + strlen(globalconfig.dglroot) + strlen(myconfig[game]->inprogressdir) + 1;
       fn = malloc (len);
 
       snprintf (fn, len, "%s%s%s", globalconfig.dglroot, myconfig[game]->inprogressdir, dent->d_name);