Bugfix: i3-input: Allocate one more character for null-termination

next
Michael Stapelberg 2009-10-23 20:06:18 +02:00
parent 25aae13331
commit 37fbea6a8a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ static int limit;
*
*/
static uint8_t *concat_strings(char **glyphs, int max) {
uint8_t *output = calloc(max, 4);
uint8_t *output = calloc(max+1, 4);
uint8_t *walk = output;
for (int c = 0; c < max; c++) {
printf("at %c\n", glyphs[c][0]);