diff --git a/status.c b/status.c index bf9490f1..675e284a 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.55 2009-01-06 18:33:32 nicm Exp $ */ +/* $Id: status.c,v 1.56 2009-01-07 22:29:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -473,6 +473,8 @@ status_prompt_key(struct client *c, int key) size_t size, n, off, idx; char word[64]; + /* XXX This function needs some tidying... */ + size = strlen(c->prompt_buffer); switch (key) { case KEYC_LEFT: