summaryrefslogtreecommitdiff
path: root/src/globals.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 22:47:38 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 23:06:38 +0100
commitc2aa1264fc52f6df08868986ed81b2d199059f7c (patch)
tree1953bde1078a0821684e51ad467be251c8696e0e /src/globals.c
parent993dde6cfa315ceaa29dfd521f9fddb27a80e66a (diff)
downloadratpoison-c2aa1264fc52f6df08868986ed81b2d199059f7c.zip
malloc -> xmalloc
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.c b/src/globals.c
index f81d7ad..7faff71 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -111,7 +111,7 @@ set_nselection (char *txt, int len)
free (selection.text);
/* Copy the string by hand. */
- selection.text = malloc(len+1);
+ selection.text = xmalloc (len + 1);
selection.len = len + 1;
for (i=0; i<len; i++)
selection.text[i] = txt[i];