summaryrefslogtreecommitdiff
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-01 18:20:13 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-01 18:20:13 +0000
commitcdc97dd6f2731020604fbc8cd3322d5127cdd666 (patch)
treec8e6751a4a616beffc984936f16ec435d8b98cde /src/pacman/util.c
parentde3a0f164c303371a2ac8813ebeec10025b27e2a (diff)
added line feeds when needed (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index af77e8ea..16939099 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -40,6 +40,7 @@
#include "conf.h"
extern int maxcols;
+extern int neednl;
extern config_t *config;
/* does the same thing as 'mkdir -p' */
@@ -203,6 +204,7 @@ int yesno(char *fmt, ...)
vprintf(fmt, args);
va_end(args);
fflush(stdout);
+ neednl = 1;
if(fgets(response, 32, stdin)) {
/* trim whitespace and newlines */
char *pch = response;