From: Todd C. Miller Date: Fri, 11 Aug 2000 19:41:28 +0000 (+0000) Subject: When writing prompt, no need to write the NUL as well; hag@linnaean.org X-Git-Tag: SUDO_1_6_4~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d76537718b9f2ca516379aa74c07b025f648d5d5;p=sudo When writing prompt, no need to write the NUL as well; hag@linnaean.org --- diff --git a/tgetpass.c b/tgetpass.c index 91d2c2cad..56253392c 100644 --- a/tgetpass.c +++ b/tgetpass.c @@ -128,7 +128,7 @@ tgetpass(prompt, timeout, flags) } if (prompt) - (void) write(output, prompt, strlen(prompt) + 1); + (void) write(output, prompt, strlen(prompt)); /* Turn echo off/on as specified by flags. */ (void) term_getattr(input, &oterm);