1
0
Fork 0
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:
QC 2014-01-31 20:36:14 +01:00
parent 8725748916
commit 8310a97219

View file

@ -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++;