app, libgimpwidgets: More strcpy_s on Windows
This commit is contained in:
parent
a749329ab6
commit
8aeb5d6f53
3 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue