From 851e4288c102cc4177d54d87aded43d003e85885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Wed, 28 Oct 2015 22:29:01 +0100 Subject: Prefix safe allocation functions with 'e' instead of 's_' --- window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index f0929ac..39d648b 100644 --- a/window.c +++ b/window.c @@ -165,8 +165,8 @@ void win_init(win_t *win) win->bar.l.size = BAR_L_LEN; win->bar.r.size = BAR_R_LEN; - win->bar.l.buf = s_malloc(win->bar.l.size); - win->bar.r.buf = s_malloc(win->bar.r.size); + win->bar.l.buf = emalloc(win->bar.l.size); + win->bar.r.buf = emalloc(win->bar.r.size); win->bar.h = options->hide_bar ? 0 : barheight; INIT_ATOM_(WM_DELETE_WINDOW); @@ -257,7 +257,7 @@ void win_open(win_t *win) gc = XCreateGC(e->dpy, win->xwin, 0, None); n = icons[ARRLEN(icons)-1].size; - icon_data = s_malloc((n * n + 2) * sizeof(*icon_data)); + icon_data = emalloc((n * n + 2) * sizeof(*icon_data)); for (i = 0; i < ARRLEN(icons); i++) { n = 0; -- cgit v1.2.3