aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcoopgamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-22 17:34:59 +0200
committerMattias Andrée <maandree@kth.se>2016-07-22 17:34:59 +0200
commit9fdf8cd92de9a131f7192e1d5de589032630eab7 (patch)
treec5288e0377c704b760d9eb88725d06a184026c88 /src/libcoopgamma.c
parentm (diff)
downloadlibcoopgamma-9fdf8cd92de9a131f7192e1d5de589032630eab7.tar.gz
libcoopgamma-9fdf8cd92de9a131f7192e1d5de589032630eab7.tar.bz2
libcoopgamma-9fdf8cd92de9a131f7192e1d5de589032630eab7.tar.xz
Fix libcoopgamma_get_methods
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c1
1 files changed, 1 insertions, 0 deletions
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]);
}