Limit the debug print to the actual password size
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
2c9e46dfee
commit
b1a6e2ebe3
2
i3lock.c
2
i3lock.c
|
@ -305,7 +305,7 @@ static void handle_key_press(xcb_key_press_event_t *event) {
|
||||||
/* store it in the password array as UTF-8 */
|
/* store it in the password array as UTF-8 */
|
||||||
memcpy(password+input_position, buffer, n-1);
|
memcpy(password+input_position, buffer, n-1);
|
||||||
input_position += n-1;
|
input_position += n-1;
|
||||||
DEBUG("current password = %s\n", password);
|
DEBUG("current password = %.*s\n", input_position, password);
|
||||||
|
|
||||||
unlock_state = STATE_KEY_ACTIVE;
|
unlock_state = STATE_KEY_ACTIVE;
|
||||||
redraw_screen();
|
redraw_screen();
|
||||||
|
|
Loading…
Reference in New Issue