Closed winspool closed 3 months ago
The fix should provide a transition to processing the next segment if the segment is empty. The proposed fix only fixes the crash, not the bug in the algorithm that caused the problem.
What about following solution
if( *p != '\0' ) {
strcpy( buf, p );
len = strlen( buf ) - 1;
#ifdef __UNIX__
if( buf[len] == '/' )
buf[len] = '\0';
#else
if( buf[len] == '/' || buf[len] == '\\' )
buf[len] = '\0';
#endif
list = scanDirectory( buf, list );
}
fixed correctly in git repository
The double colon in $PATH let whelp segfault, when whelp is searching for available help files.
-- Regards ... Detlef