-/* src/client/draw_wins.c */
+/* src/client/draw_wins.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#define _POSIX_C_SOURCE 200809L /* strdup() */
#include "draw_wins.h"
uint16_t len_line = strlen(line);
char * separator = last ? "" : " / ";
uint32_t len_line_new = len_line + strlen(separator);
- char * line_new = try_malloc(len_line_new, __func__);
+ char * line_new = try_malloc(len_line_new + 1, __func__);
int test = sprintf(line_new, "%s%s", line, separator);
exit_trouble(test < 0, __func__, "sprintf");
uint16_t x = 0;