diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-03-11 21:54:20 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-03-11 21:55:04 +0100 |
commit | 4dc4e407e362d5f4446801d03363dc1119c9d10e (patch) | |
tree | df5807853bc43f2f0c9ccef5383e1805cb34a1e3 /libplanfahr | |
parent | 827dd363d225e52d3f7f7e68a419289e65e13064 (diff) |
Fix incorrect provider list size
Diffstat (limited to 'libplanfahr')
-rw-r--r-- | libplanfahr/lpf-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libplanfahr/lpf-manager.c b/libplanfahr/lpf-manager.c index 7f575a0..8cd6a81 100644 --- a/libplanfahr/lpf-manager.c +++ b/libplanfahr/lpf-manager.c @@ -101,7 +101,7 @@ GStrv lpf_manager_get_available_providers(void) if (glob(pattern, GLOB_NOSORT, NULL, &globbuf)) goto out; - if (!(providers = g_try_malloc (sizeof(gchar) * globbuf.gl_pathc + 1))) { + if (!(providers = g_try_malloc (sizeof(gchar*) * (globbuf.gl_pathc + 1)))) { goto out; } |