From: Christian Heller Date: Sat, 15 Jun 2013 00:22:33 +0000 (+0200) Subject: More descriptive comment. X-Git-Tag: tce~1223 X-Git-Url: https://plomlompom.com/repos/balance?a=commitdiff_plain;h=d2f20fe7cf821fb761353e8f63eaebb5bf4cbd9e;p=plomrogue More descriptive comment. --- diff --git a/windows.c b/windows.c index e128ef5..cba985e 100644 --- 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)