home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d922bc
)
Fixed memory handling bug.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Sep 2013 14:15:56 +0000
(16:15 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Sep 2013 14:15:56 +0000
(16:15 +0200)
src/wincontrol.c
patch
|
blob
|
history
diff --git
a/src/wincontrol.c
b/src/wincontrol.c
index 5ebc0573c60592218449174c2ff53de87a5653ba..a9f8017f6a3ffb5fc2b75d08b888d37437105994 100644
(file)
--- a/
src/wincontrol.c
+++ b/
src/wincontrol.c
@@
-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);