diff options
-rw-r--r-- | fslsfonts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fslsfonts.c b/fslsfonts.c index 48d077d..08a7b3a 100644 --- a/fslsfonts.c +++ b/fslsfonts.c @@ -265,11 +265,11 @@ get_list(const char *pattern) return; } if (font_list) - font_list = (FontList *) realloc(font_list, - (font_cnt + available) * sizeof(FontList)); + font_list = realloc(font_list, + (font_cnt + available) * sizeof(FontList)); else - font_list = (FontList *) malloc((unsigned) - (font_cnt + available) * sizeof(FontList)); + font_list = malloc((unsigned) + (font_cnt + available) * sizeof(FontList)); if (font_list == NULL) { fprintf(stderr, "%s: unable to allocate %zu bytes for font list\n", program_name, (font_cnt + available) * sizeof(FontList)); |