mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-14 17:43:01 -04:00
Merge pull request #312 from jasperla/memmove
Fix a crash due to overlapping arguments of memcpy(3).
This commit is contained in:
commit
f65dc35036
1 changed files with 1 additions and 1 deletions
|
@ -940,7 +940,7 @@ static void menu_refilter ( MenuState *state )
|
|||
g_mutex_clear ( &mutex );
|
||||
for ( unsigned int i = 0; i < nt; i++ ) {
|
||||
if ( j != states[i].start ) {
|
||||
memcpy ( &( state->line_map[j] ), &( state->line_map[states[i].start] ), sizeof ( unsigned int ) * ( states[i].count ) );
|
||||
memmove ( &( state->line_map[j] ), &( state->line_map[states[i].start] ), sizeof ( unsigned int ) * ( states[i].count ) );
|
||||
}
|
||||
j += states[i].count;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue