diff options
author | Joursoir <chat@joursoir.net> | 2020-10-13 16:46:41 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-10-13 16:46:41 +0000 |
commit | 4e6ba9fff744c430bd8d7d753e66a2011ef8e116 (patch) | |
tree | 33fbc47deefe6f575a1f96e6049eed02d4da3dec /easydir.c | |
parent | ae832e7ec00a30bf23609fcf35e7d1ffcf63e19b (diff) | |
download | lock-password-4e6ba9fff744c430bd8d7d753e66a2011ef8e116.tar.gz lock-password-4e6ba9fff744c430bd8d7d753e66a2011ef8e116.tar.bz2 lock-password-4e6ba9fff744c430bd8d7d753e66a2011ef8e116.zip |
change code architecture
Diffstat (limited to 'easydir.c')
-rw-r--r-- | easydir.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,9 +14,9 @@ char* splitPath(char *source, char *path, char *file) { int fSymbol = 0, f = 0; - char *main_path = malloc(sizeof(char) * strlen(source) + 1); - char *file_path = malloc(sizeof(char) * strlen(source) + 1); - + char *main_path = malloc( sizeof(char) * (strlen(source)+1) ); + char *file_path = malloc( sizeof(char) * (strlen(source)+1) ); + for(int i=0; i < strlen(source); i++) { if(fSymbol == 1) |