From 9fdf8cd92de9a131f7192e1d5de589032630eab7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Jul 2016 17:34:59 +0200 Subject: Fix libcoopgamma_get_methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 345909f..031af1a 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1023,6 +1023,7 @@ char** libcoopgamma_get_methods(void) rc[n] = NULL; while (n--) { + rc[n] = buffer; buffer = stpcpy(buffer, methods[n]) + 1; free(methods[n]); } -- cgit v1.2.3-70-g09d2