Minor fixes
This commit is contained in:
@@ -223,6 +223,12 @@ char *string_chomp(char *str)
|
||||
|
||||
if( *str )
|
||||
{
|
||||
for (p = str; p < (str + strlen(str)); p++){
|
||||
if( *p == '\n')
|
||||
*p = '\0';
|
||||
if( *p == '\r')
|
||||
*p = '\0';
|
||||
}
|
||||
p = str + strlen(str + 1);
|
||||
if( *p == '\n' )
|
||||
*p-- = '\0';
|
||||
|
||||
Reference in New Issue
Block a user