summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/x-python.c
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/src/x-python.c')
-rw-r--r--gettext-tools/src/x-python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/src/x-python.c b/gettext-tools/src/x-python.c
index 325f750..17f6b58 100644
--- a/gettext-tools/src/x-python.c
+++ b/gettext-tools/src/x-python.c
@@ -664,7 +664,7 @@ try_to_extract_coding (const char *comment)
{
/* Extract the encoding string. */
size_t encoding_len = encoding_end - encoding_start;
- char *encoding = (char *) xmalloc (encoding_len + 1);
+ char *encoding = XNMALLOC (encoding_len + 1, char);
memcpy (encoding, encoding_start, encoding_len);
encoding[encoding_len] = '\0';