]> err.no Git - dpkg/commitdiff
More m_malloc
authorTollef Fog Heen <tfheen@err.no>
Sun, 20 Jan 2008 20:47:22 +0000 (21:47 +0100)
committerTollef Fog Heen <tfheen@err.no>
Sun, 20 Jan 2008 20:47:22 +0000 (21:47 +0100)
src/filters.c

index ae69dbcfeeda8c3628a9462f1f36014a9233c207..f1d76442777c48d204dfddd544393f83e45e03e0 100644 (file)
@@ -146,7 +146,7 @@ int filter_should_skip(struct TarInfo *ti) {
       for (f = filters; f != NULL; f = f->next) {
        char *pattern;
 
-       pattern = malloc(strlen(ti->Name) + 1);
+       pattern = m_malloc(strlen(ti->Name) + 1);
        strcpy(pattern, &ti->Name[1]);
        strcat(pattern, "*");