diff options
author | Tollef Fog Heen <tfheen@err.no> | 2007-02-25 15:12:40 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2007-02-25 15:12:40 +0100 |
commit | 92d4e25061c065c0d7ee7fdb8feb3b0513ad0670 (patch) | |
tree | 48e972cbbefb87502592467086d0ecb90bc43bb1 | |
parent | 3977a8299d06a7ee2c58415ceba9f7a1b30fdd2f (diff) |
2007-02-25 Tollef Fog Heen <tfheen@err.no>
* pkg.c (scan_dir): Use g_malloc, not malloc for pkgname.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | pkg.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ 2007-02-25 Tollef Fog Heen <tfheen@err.no> + * 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 @@ -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); |