summaryrefslogtreecommitdiffstats
path: root/Audio-Common/filescan-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Audio-Common/filescan-utils.c')
-rw-r--r--Audio-Common/filescan-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Audio-Common/filescan-utils.c b/Audio-Common/filescan-utils.c
index 33dacdf..af0b5c9 100644
--- a/Audio-Common/filescan-utils.c
+++ b/Audio-Common/filescan-utils.c
@@ -27,7 +27,7 @@
// List Avaliable Configuration Files
-PUBLIC json_object* ScanForConfig (char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext) {
+PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext) {
json_object *responseJ;
char *dirPath;
char* dirList= strdup(searchPath);
@@ -94,7 +94,7 @@ PUBLIC const char *GetMidleName(const char*name) {
int start;
if (fullname[idx] == '-') {
start = idx + 1;
- for (int jdx = start; fullname[jdx] != '\0'; jdx++) {
+ for (int jdx = start; ; jdx++) {
if (fullname[jdx] == '-' || fullname[jdx] == '.' || fullname[jdx] == '\0') {
fullname[jdx] = '\0';
return &fullname[start];