From 4bb99980a80cf636f18a3f4e0611f557d510f987 Mon Sep 17 00:00:00 2001 From: gmaris Date: Thu, 24 Jun 2021 21:39:57 +0200 Subject: [PATCH] fixing issue for mlx_xpm_to_image --- mlx_xpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx_xpm.c b/mlx_xpm.c index 688cc94a..b63c2879 100644 --- a/mlx_xpm.c +++ b/mlx_xpm.c @@ -75,7 +75,7 @@ char *mlx_int_static_line(char **xpm_data,int *pos,int size) return ((char *)0); len = len2; } - strlcpy_is_not_posix(copy, str, len2); + strlcpy_is_not_posix(copy, str, len2 + 1); return (copy); }