[server] chop_char() handles file string length

This commit is contained in:
Michael Rash
2015-12-21 00:12:12 -08:00
parent 2b881bc8eb
commit c2737ee9f4
+1 -2
View File
@@ -786,8 +786,7 @@ make_dir_path(const char * const run_dir)
/* Strip any trailing dir sep char.
*/
if(strlen(tmp_path) > 1)
chop_char(tmp_path, PATH_SEP);
chop_char(tmp_path, PATH_SEP);
for(ndx = tmp_path+1; *ndx; ndx++)
{