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

reduce stack allocation

parent 7142b8a9
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ int resolve_check_g(resolve_wrapper_t *wres, char const *base, char const *name)
size_t baselen = strlen(base) ;
size_t namelen = strlen(name) ;
char path[baselen + SS_SYSTEM_LEN + SS_RESOLVE_LEN + SS_SERVICE_LEN + 1 + SS_SERVICE_LEN + 1 + namelen + 1] ;
char path[baselen + SS_SYSTEM_LEN + SS_RESOLVE_LEN + SS_SERVICE_LEN + 1 + namelen + 1] ;
if (wres->type == DATA_SERVICE) {
......
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