From: Tollef Fog Heen Date: Sun, 20 Jan 2008 09:09:48 +0000 (+0100) Subject: Use m_malloc, not malloc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e70047388f7fbd3a64a707eef2e2d9a3ad10fe9;p=dpkg Use m_malloc, not malloc --- 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);