From 92d4e25061c065c0d7ee7fdb8feb3b0513ad0670 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 25 Feb 2007 15:12:40 +0100 Subject: [PATCH] 2007-02-25 Tollef Fog Heen * pkg.c (scan_dir): Use g_malloc, not malloc for pkgname. --- ChangeLog | 2 ++ pkg.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 698a4ab..b6ddc37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-02-25 Tollef Fog Heen + * pkg.c (scan_dir): Use g_malloc, not malloc for pkgname. + * Makefile.am: Add support for using the system glib. Thanks to Peter Breitenlohner for the bug and the patch. Freedesktop #9708 diff --git a/pkg.c b/pkg.c index 928f0c9..8592bef 100644 --- a/pkg.c +++ b/pkg.c @@ -188,7 +188,7 @@ scan_dir (const char *dirname) if (ends_in_dotpc (dent->d_name)) { - char *pkgname = malloc (len - 2); + char *pkgname = g_malloc (len - 2); debug_spew ("File '%s' appears to be a .pc file\n", dent->d_name); -- 2.39.5