From d0c6e0a4815c9aeda39e3af0999322f9790396dd Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 17 Nov 2012 08:54:24 +0000 Subject: [PATCH] sigh --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.c b/test.c index 336dca0..1ea5b60 100644 --- a/test.c +++ b/test.c @@ -433,8 +433,8 @@ bool task_propogate(const char *curdir) { dir = opendir(curdir); while ((files = readdir(dir))) { - memset (buffer, 0, sizeof(buffer)); - snprintf(buffer, 0, "%s/%s", curdir, files->d_name); + memset (buffer, 0,sizeof(buffer)); + snprintf(buffer, sizeof(buffer), "%s/%s", curdir, files->d_name); if (stat(buffer, &directory) == -1) { con_err("internal error: stat failed, aborting\n");