From fe95ec6ecf64b87598bff40a47195b430f1011fe Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Tue, 31 Mar 2026 22:21:20 -0300 Subject: [PATCH] libgimpconfig: Use strcat_s on Windows to fix CRT_INSECURE_DEPRECATE warns --- libgimpconfig/gimpconfig-path.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c index ede64cf956..741d775e42 100644 --- a/libgimpconfig/gimpconfig-path.c +++ b/libgimpconfig/gimpconfig-path.c @@ -632,7 +632,11 @@ gimp_config_path_expand_only (const gchar *path, if (*p == '~' && home) { *n = '\0'; +#ifndef _UCRT strcat (n, home); +#else + strcat_s (n, (length + 1) - (n - expanded), home); +#endif n += strlen (home); p += 1; } @@ -645,7 +649,11 @@ gimp_config_path_expand_only (const gchar *path, s = substs[2*i+1]; *n = '\0'; +#ifndef _UCRT strcat (n, s); +#else + strcat_s (n, (length + 1) - (n - expanded), s); +#endif n += strlen (s); break;