Skip to content

Commit

Permalink
Fix crash due to pword_clear() not setting draw_begin to zero.
Browse files Browse the repository at this point in the history
 * If added a buddy and the name input was scrolled.
 * If renaming a itemlist and the name input was scrolled.
 * Second time we do the action, the client crashes.
 * Thanks OOP for reporting the add buddy crash.
  • Loading branch information
pjbroad committed Nov 15, 2024
1 parent 7bc445e commit ff42c5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -4154,6 +4154,7 @@ int pword_clear(int window_id, Uint32 widget_id)
entry->password[0] = '\0';
entry->cursor_pos = 0;
entry->drag_begin = 0;
entry->draw_begin = 0;
entry->draw_end = 0;
entry->sel_begin = 0;
entry->sel_end = 0;
Expand Down

0 comments on commit ff42c5b

Please sign in to comment.