app, libgimpwidgets: More strcpy_s on Windows

This commit is contained in:
Bruno Lopes 2026-03-31 16:57:51 -03:00
parent a749329ab6
commit 8aeb5d6f53
3 changed files with 12 additions and 0 deletions

View file

@ -428,7 +428,11 @@ unescape_gstring (GString *string)
{
gchar buf[8];
char_str (l, buf);
#ifndef _UCRT
strcpy (to, buf);
#else
strcpy_s (to, 8, buf);
#endif
to += strlen (buf) - 1;
from = end;
}

View file

@ -795,7 +795,11 @@ gimp_device_info_pad_action_map_foreach (GimpPadActions *pad_actions,
label = g_strdup (gimp_action_get_label (action));
accel_pos = g_utf8_strchr (label, -1, '_');
if (accel_pos)
#ifndef _UCRT
strcpy (accel_pos, accel_pos + 1);
#else
strcpy_s (accel_pos, strlen (accel_pos), accel_pos + 1);
#endif
gtk_pad_controller_set_action (controller,
/* Action type enums are binary compatible */

View file

@ -399,7 +399,11 @@ gimp_size_entry_new (gint number_of_fields,
gchar *p;
while ((p = strstr (short_format, "%n")))
#ifndef _UCRT
strcpy (p, "%a");
#else
strcpy_s (p, strlen (p) + 1, "%a");
#endif
g_object_set (store,
"short-format", short_format,