mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix endline thingy in dmenu
This commit is contained in:
parent
8725748916
commit
8310a97219
1 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ static char **get_dmenu ( )
|
|||
while ( fgets( buffer, 1024, stdin ) != NULL ) {
|
||||
retv = realloc( retv, ( index+2 )*sizeof( char* ) );
|
||||
retv[index] = strdup( buffer );
|
||||
if( retv[index][strlen(buffer)-1] == '\n')
|
||||
retv[index][strlen( buffer )-1] = '\0';
|
||||
retv[index+1] = NULL;
|
||||
index++;
|
||||
|
|
Loading…
Reference in a new issue