From: Quentin Glidic Date: Thu, 7 Feb 2013 16:14:53 +0000 (+0100) Subject: Limit the debug print to the actual password size X-Git-Tag: 2.5~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1a6e2ebe35f2b32e5aaf2597a95cac65c779b15;p=i3%2Fi3lock Limit the debug print to the actual password size Signed-off-by: Quentin Glidic --- diff --git a/i3lock.c b/i3lock.c index 69f191e..df07d90 100644 --- a/i3lock.c +++ b/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 */ memcpy(password+input_position, buffer, 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; redraw_screen();