From c284a0ba8e3d4c1e4f6e319013f1fa2accdbbd4c Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Wed, 15 Feb 2012 12:17:14 +0100 Subject: [PATCH] Opps, use second buffer so as not to clobber path --- drmr_hydrogen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drmr_hydrogen.c b/drmr_hydrogen.c index ef5984b..b2c14f9 100644 --- a/drmr_hydrogen.c +++ b/drmr_hydrogen.c @@ -255,12 +255,12 @@ kits* scan_kits() { char* cur_path = default_drumkit_locations[cp++]; kits* ret = malloc(sizeof(kits)); struct kit_list* scanned_kits = NULL,*cur_kit; - char buf[BUFSIZ]; + char buf[BUFSIZ], path_buf[BUFSIZ]; ret->num_kits = 0; while (cur_path) { - cur_path = expand_path(cur_path,buf); + cur_path = expand_path(cur_path,path_buf); if (!cur_path) { cur_path = default_drumkit_locations[cp++]; continue;