From a68f2ca029f3f460aaf4b48f36da0acbc082f8d5 Mon Sep 17 00:00:00 2001 From: notting Date: Mon, 8 Oct 2001 15:14:50 +0000 Subject: [PATCH] fix alloca/strlen bug --- entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.c b/entry.c index 154edba..0c70e6a 100644 --- a/entry.c +++ b/entry.c @@ -142,7 +142,7 @@ static void entryDraw(newtComponent co) { if (en->flags & NEWT_FLAG_PASSWORD) { char *tmpptr, *p; - tmpptr = alloca(strlen(chptr+2)); + tmpptr = alloca(strlen(chptr)+2)); strcpy(tmpptr, chptr); for (p = tmpptr; *p; p++) *p = '*'; -- 2.47.2