fixed indention

This commit is contained in:
NightlyFox 2018-09-21 21:11:36 -05:00
parent 22c2c5b237
commit 907b594978

View File

@ -112,9 +112,9 @@ static inline char* getSlash(const char* str)
} }
static inline char* removeExtension(const char* str){ static inline char* removeExtension(const char* str){
const char* p; const char* p;
char* copy = calloc(strlen(str)+1,sizeof(char)); 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 */ 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++){ for (p = str; p <= (str+strlen(str)) && *p != '.'; p++){
*copy = *p; *copy = *p;
copy++; copy++;