mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Merge 397592adf1 into 7c3b0ffc32
This commit is contained in:
commit
3fe8e0fc76
2 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ char *read_line(FILE *file) {
|
|||
}
|
||||
string[length++] = c;
|
||||
}
|
||||
if (length + 1 == size) {
|
||||
if (length + 1 >= size) {
|
||||
char *new_string = realloc(string, length + 1);
|
||||
if (!new_string) {
|
||||
free(string);
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ void notify_key(enum wl_keyboard_key_state state, xkb_keysym_t sym, uint32_t cod
|
|||
redraw_screen = 1;
|
||||
|
||||
password_size = 1024;
|
||||
free(password);
|
||||
password = malloc(password_size);
|
||||
password[0] = '\0';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue