summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/events.c b/src/events.c
index 9bc29e6..7e68c14 100644
--- a/src/events.c
+++ b/src/events.c
@@ -318,12 +318,8 @@ handle_key (screen_info *s)
else
{
keysym_name = keysym_to_string (keysym, mod);
- msg = (char *) malloc ( strlen ( keysym_name ) + 20 );
- if ( msg == NULL )
- {
- PRINT_ERROR ("Out of memory\n");
- exit (EXIT_FAILURE);
- }
+ msg = (char *) xmalloc ( strlen ( keysym_name ) + 20 );
+
snprintf (msg, strlen (keysym_name) + 13, "%s unbound key!", keysym_name);
free (keysym_name);