home · contact · privacy
Fixed memory handling bug.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 8 Sep 2013 14:15:56 +0000 (16:15 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 8 Sep 2013 14:15:56 +0000 (16:15 +0200)
src/wincontrol.c

index 5ebc0573c60592218449174c2ff53de87a5653ba..a9f8017f6a3ffb5fc2b75d08b888d37437105994 100644 (file)
@@ -304,7 +304,7 @@ extern void init_winconfs(struct World * world)
     winconf_ids[i] = '\0';
     exit_err(errno, world, err_r);
     exit_err(closedir(dp), world, err_c);
-    world->winconf_ids = try_malloc(strlen(winconf_ids + 1), world, f_name);
+    world->winconf_ids = try_malloc(strlen(winconf_ids) + 1, world, f_name);
     memcpy(world->winconf_ids, winconf_ids, strlen(winconf_ids) + 1);
     free(winconf_ids);