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:
a068b57
)
Minor code restyling.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 12 May 2013 21:26:21 +0000
(23:26 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 12 May 2013 21:26:21 +0000
(23:26 +0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 002b875f9f78c7928c78956d898268dd010fa0c1..a9d355383386d87653cd214553ffc37d53474167 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-288,7
+288,7
@@
void save_keybindings(struct World * world) {
for (i = 0; i <= keyswindata->max; i++)
if (strlen(keybindings[i].name) > linemax)
linemax = strlen(keybindings[i].name);
- linemax = linemax + 6; // + 6 = + 3 digits + whitespace + newline + null byte
+ linemax = linemax + 6;
// + 6 = + 3 digits + whitespace + newline + null byte
char * line = malloc(linemax);
for (i = 0; i <= keyswindata->max; i++) {
snprintf(line, linemax, "%d %s\n", keybindings[i].key, keybindings[i].name);