summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 7756da36..e78c6a19 100644
--- a/src/util.c
+++ b/src/util.c
@@ -107,13 +107,13 @@ util_keyval_to_char(guint keyval, gboolean ignore_whitespace) {
if ( (unichar = gdk_keyval_to_unicode(keyval)) ) {
if (ignore_whitespace && !g_unichar_isgraph(unichar))
return NULL;
- key = dwb_malloc(6);
+ key = g_malloc0_n(6, sizeof(char));
if ( key && (length = g_unichar_to_utf8(unichar, key))) {
memset(&key[length], '\0', 6-length);
return key;
}
else
- FREE(key);
+ g_free(key);
}
return NULL;
}/*}}}*/