From 441c118b6338a129b4690089e41948baceefb452 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 17 Jul 2009 09:26:21 +0000 Subject: Memory could be leaked if a second prompt or message appeared while another was still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual --- server-fn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server-fn.c') diff --git a/server-fn.c b/server-fn.c index b6c25d8e..5957f596 100644 --- a/server-fn.c +++ b/server-fn.c @@ -1,4 +1,4 @@ -/* $Id: server-fn.c,v 1.71 2009-07-14 07:01:03 nicm Exp $ */ +/* $Id: server-fn.c,v 1.72 2009-07-17 09:26:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -171,8 +171,8 @@ server_lock(void) continue; status_prompt_clear(c); - status_prompt_set( - c, "Password: ", server_lock_callback, c, PROMPT_HIDDEN); + status_prompt_set(c, + "Password: ", server_lock_callback, c, NULL, PROMPT_HIDDEN); server_redraw_client(c); } server_locked = 1; -- cgit