From b1681096728a11f3d542be328ec5046ab0ef8f55 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 5 Jan 2012 17:23:22 +0100 Subject: [PATCH] Fix missing stuff. --- file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/file.c b/file.c index b047298b8e..c6645669d0 100644 --- a/file.c +++ b/file.c @@ -831,14 +831,14 @@ char **dir_list_new(const char *dir, const char *ext) char path_buf[PATH_MAX]; - if (strlcpy(utf8_buf, dir, sizeof(utf8_buf)) >= sizeof(utf8_buf)) + if (strlcpy(path_buf, dir, sizeof(path_buf)) >= sizeof(path_buf)) goto error; - if (strlcat(utf8_buf, "/*", sizeof(utf8_buf)) >= sizeof(utf8_buf)) + if (strlcat(path_buf, "/*", sizeof(path_buf)) >= sizeof(path_buf)) goto error; if (ext) { - if (strlcat(utf8_buf, ext, sizeof(utf8_buf)) >= sizeof(utf8_buf)) + if (strlcat(path_buf, ext, sizeof(path_buf)) >= sizeof(path_buf)) goto error; }