Skip to content
Snippets Groups Projects
Commit f8cfcfee authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

reduce allocation of memory

parent cdcf679e
No related branches found
Tags v0.1.0.0
No related merge requests found
......@@ -84,7 +84,7 @@ int ssexec_init(int argc, char const *const *argv,char const *const *envp,ssexec
size_t dirlen ;
size_t svdirlen ;
char svdir[info->tree.len + SS_SVDIRS_LEN + SS_DB_LEN + 1 + info->treename.len + 1] ;
char svdir[info->tree.len + SS_SVDIRS_LEN + SS_SVC_LEN + 1] ;
memcpy(svdir,info->tree.s,info->tree.len) ;
memcpy(svdir + info->tree.len ,SS_SVDIRS ,SS_SVDIRS_LEN) ;
svdirlen = info->tree.len + SS_SVDIRS_LEN ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment