X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fdump_entry.c;h=9c0c8155be070d4b67d3f4660af9df3f5df53401;hp=dda1b681956a48390cb9413b3b05dd85c603b61f;hb=f259fb41d8f08b7e042eb928b839b59c8e39098c;hpb=7f4b9f390624835ceb0849965a7f6ff2dcb39d00 diff --git a/progs/dump_entry.c b/progs/dump_entry.c index dda1b681..9c0c8155 100644 --- a/progs/dump_entry.c +++ b/progs/dump_entry.c @@ -40,7 +40,7 @@ #include /* this C file is generated */ #include /* so is this */ -MODULE_ID("$Id: dump_entry.c,v 1.186 2021/04/18 11:33:08 tom Exp $") +MODULE_ID("$Id: dump_entry.c,v 1.187 2021/06/12 22:06:55 tom Exp $") #define DISCARD(string) string = ABSENT_STRING #define PRINTF (void) printf @@ -549,7 +549,7 @@ fill_spaces(const char *src) if (pass) { result[d] = '\0'; } else { - result = malloc(need + 1); + result = calloc(need + 1, sizeof(char)); if (result == 0) failed("fill_spaces"); }