aboutsummaryrefslogtreecommitdiffstats
path: root/easydir.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-10-13 16:46:41 +0000
committerJoursoir <chat@joursoir.net>2020-10-13 16:46:41 +0000
commit4e6ba9fff744c430bd8d7d753e66a2011ef8e116 (patch)
tree33fbc47deefe6f575a1f96e6049eed02d4da3dec /easydir.c
parentae832e7ec00a30bf23609fcf35e7d1ffcf63e19b (diff)
downloadlock-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/easydir.c b/easydir.c
index 12f8ccc..c6034dd 100644
--- a/easydir.c
+++ b/easydir.c
@@ -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)