From 8e70047388f7fbd3a64a707eef2e2d9a3ad10fe9 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 20 Jan 2008 10:09:48 +0100 Subject: [PATCH] Use m_malloc, not malloc --- lib/myopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/myopt.c b/lib/myopt.c index 72abb3db..42586d8d 100644 --- a/lib/myopt.c +++ b/lib/myopt.c @@ -243,7 +243,7 @@ void loadfilters(void) { while ((dent = readdir(dir)) != NULL) { struct stat statbuf; - char *file = malloc(strlen(dirname) + 1 + strlen(dent->d_name) + 1); + char *file = m_malloc(strlen(dirname) + 1 + strlen(dent->d_name) + 1); if (!file) ohshite(_("Error allocating memory for file")); sprintf(file, "%s/%s", dirname, dent->d_name); -- 2.39.5