aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index e3d4406725..558b727110 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -498,7 +498,7 @@ get_utf8_string (const char *str)
len = strlen (str);
if ((min (PTRDIFF_MAX, SIZE_MAX) - len - 1) / 4 < nr_bad)
memory_full (SIZE_MAX);
- up = utf8_str = xmalloc (len + nr_bad * 4 + 1);
+ up = utf8_str = xmalloc_atomic (len + nr_bad * 4 + 1);
p = (unsigned char *)str;
while (! (cp = g_locale_to_utf8 ((char *)p, -1, &bytes_read,