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:
5cf8ee7
)
More descriptive comment.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 15 Jun 2013 00:22:33 +0000
(
02:22
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 15 Jun 2013 00:22:33 +0000
(
02:22
+0200)
windows.c
patch
|
blob
|
history
diff --git
a/windows.c
b/windows.c
index e128ef5f0c3a2c464107a7ccd71bb3a084f4fdc2..cba985e65189681eff8b66795bb46ef24825b73c 100644
(file)
--- a/
windows.c
+++ b/
windows.c
@@
-195,7
+195,7
@@
extern void draw_scroll_hint (struct Frame * frame, uint16_t pos, uint32_t dist,
if ('<' == dir || '>' == dir) {
dsc_space = frame->size.y;
unit = unit_cols; }
- char * scrolldsc = malloc((4 * sizeof(char)) + strlen(more) + strlen(unit) + 10);
// 10: strlen for uint32_t
+ char * scrolldsc = malloc((4 * sizeof(char)) + strlen(more) + strlen(unit) + 10);
// 10 = uint32 max strlen
sprintf(scrolldsc, " %d %s %s ", dist, more, unit);
char offset = 1, q;
if (dsc_space > strlen(scrolldsc) + 1)