From: notting Date: Mon, 8 Oct 2001 15:14:50 +0000 (+0000) Subject: fix alloca/strlen bug X-Git-Tag: r0-50-35~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a68f2ca029f3f460aaf4b48f36da0acbc082f8d5;p=thirdparty%2Fnewt.git fix alloca/strlen bug --- 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 = '*';