diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 14:57:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 14:57:08 +0000 |
commit | ad1541913f902dad3f6c4b79543b6c380a8058fa (patch) | |
tree | 5a8d7c2e5f2996610adf487f6510d2cb1dfbf7a6 /window-scroll.c | |
parent | ef18b7d6373aaa2d399980fdf7628563ce00ff9f (diff) |
Fix use-after-free.
Diffstat (limited to 'window-scroll.c')
-rw-r--r-- | window-scroll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/window-scroll.c b/window-scroll.c index 2bfd0dc8..cdfc4b94 100644 --- a/window-scroll.c +++ b/window-scroll.c @@ -1,4 +1,4 @@ -/* $Id: window-scroll.c,v 1.3 2007-11-21 14:39:46 nicm Exp $ */ +/* $Id: window-scroll.c,v 1.4 2007-11-21 14:57:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -97,11 +97,11 @@ window_scroll_key(struct window *w, int key) recalculate_sizes(); server_redraw_window_all(w); - break; + return; case 'k': case 'K': case KEYC_UP: - if (data->off < data->size) + if (data->off < data->size) data->off++; break; case 'j': |