From bea30a879dd5431723ab52b5d8d16a26f1cf4154 Mon Sep 17 00:00:00 2001 From: Andrii Date: Sun, 13 Sep 2020 00:40:22 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: heinrich5991 --- src/tools/config_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/config_common.h b/src/tools/config_common.h index afd7558c9..97bb9bd8c 100644 --- a/src/tools/config_common.h +++ b/src/tools/config_common.h @@ -37,7 +37,7 @@ static int ListdirCallback(const char *pItemName, int IsDir, int StorageType, vo { ListDirectoryContext Context = *((ListDirectoryContext *)pUser); char aName[2048]; - str_format(aName, sizeof(aName), "%s\\%s", Context.pPath, pItemName); + str_format(aName, sizeof(aName), "%s/%s", Context.pPath, pItemName); ProcessItem(aName, Context.pStorage); } @@ -51,6 +51,7 @@ int main(int argc, const char **argv) if(argc == 1) { dbg_msg("usage", "%s FILE1 [ FILE2... ]", argv[0]); + dbg_msg("usage", "%s DIRECTORY", argv[0]); return -1; } else if(argc == 2 && fs_is_dir(argv[1]))