diff --git a/common/menu.h b/common/menu.h index a7f690d..79b62bc 100644 --- a/common/menu.h +++ b/common/menu.h @@ -112,9 +112,9 @@ static inline char* getSlash(const char* str) } static inline char* removeExtension(const char* str){ - const char* p; - char* copy = calloc(strlen(str)+1,sizeof(char)); - char *copyHead = copy;/*Get copy of the head of the char* to return, otherwise it will return copy->null */ + const char* p; + char* copy = calloc(strlen(str)+1,sizeof(char)); + char *copyHead = copy;/*Get copy of the head of the char* to return, otherwise it will return copy->null */ for (p = str; p <= (str+strlen(str)) && *p != '.'; p++){ *copy = *p; copy++;