From acac4892a00dbc5391b607b6a31ecf07ef646164 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 22 May 2026 12:29:32 +0200 Subject: [PATCH] login flush --- login.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/login.c b/login.c index dbc4974..b4e7c7e 100644 --- a/login.c +++ b/login.c @@ -103,6 +103,7 @@ static int get_raw_str(uint8 *s, int maxlen, int doecho) static void getstr(char *what, char *str, int rsize, int doecho) { fprintf(stdout, "%s: ", what); + fflush(stdout); get_raw_str(str, rsize, doecho); fprintf(stdout, "\n"); } @@ -391,17 +392,9 @@ int func_exec(int argc, char *argv[], int mode) xfree(buff); if (nargv != NULL) { if (!mode) -#ifdef __WATCOMC__ - spawnvp(P_WAIT, buf, (const char * const *)nargv); -#else spawnvp(P_WAIT, buf, nargv); -#endif else -#ifdef __WATCOMC__ - execvp(buf, (const char * const *)nargv); -#else execvp(buf, nargv); -#endif } xfree(buf); }