index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-07-07 17:12:42 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-23 21:48:28 -0500 |
commit | d896527d21107afe69328ac465a3d2f0e318ddca (patch) | |
tree | 9cf121bd6883d5d89c9ca942d0b0c387656d2208 /src | |
parent | ce3f4e7800f215e8a2b6e22bbd5f5ec9e0de90c2 (diff) |
-rw-r--r-- | src/pacman/util.c | 3 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index d117cd39..dbac29bf 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -690,7 +690,6 @@ void display_optdepends(pmpkg_t *pkg) static int question(short preset, char *fmt, va_list args) { char response[32]; - int sresponse = sizeof(response)-1; FILE *stream; if(config->noconfirm) { @@ -713,7 +712,7 @@ static int question(short preset, char *fmt, va_list args) return(preset); } - if(fgets(response, sresponse, stdin)) { + if(fgets(response, sizeof(response), stdin)) { strtrim(response); if(strlen(response) == 0) { return(preset); |