Lines 166-175
Link Here
|
166 |
int e; |
166 |
int e; |
167 |
|
167 |
|
168 |
/* we DID check in main that -V has been specified !*/ |
168 |
/* we DID check in main that -V has been specified !*/ |
169 |
strcpy(tmpNWPath,info->remote_path); |
169 |
memset(tmpNWPath,0,sizeof(tmpNWPath)); |
|
|
170 |
strncpy(tmpNWPath,sizeof(tmpNWPath)-1,info->remote_path); |
170 |
if (info->root_path) { |
171 |
if (info->root_path) { |
171 |
strcat(tmpNWPath,"/"); |
172 |
strncat(tmpNWPath,"/",sizeof(tmpNWPath)-strlen(tmpNWPath)-1); |
172 |
strcat(tmpNWPath,info->root_path); |
173 |
strncat(tmpNWPath,info->root_path,sizeof(tmpNWPath)-strlen(tmpNWPath)-1); |
173 |
} |
174 |
} |
174 |
/* I keep forgeting typing it in uppercase so let's do it here */ |
175 |
/* I keep forgeting typing it in uppercase so let's do it here */ |
175 |
str_upper(tmpNWPath); |
176 |
str_upper(tmpNWPath); |