diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2013-02-07 17:14:53 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-02-07 17:15:16 +0100 |
commit | b1a6e2ebe35f2b32e5aaf2597a95cac65c779b15 (patch) | |
tree | d455e6e897d8fa43211804eddb8592fa24ec7ba8 | |
parent | 2c9e46dfee01c02a9c2b884945d51c1bda717144 (diff) |
Limit the debug print to the actual password size
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r-- | i3lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |