summaryrefslogtreecommitdiff
path: root/src/getpass.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-24 01:27:00 +0000
committerYang Tse <yangsita@gmail.com>2008-10-24 01:27:00 +0000
commit6ea91af2f8f787f16b1bde88ae2293adcc961986 (patch)
treeb7a84538b1b6217e877a01a2b41367d330d2e712 /src/getpass.c
parentb7674403995be67dae5017b9dd573cc7b4e65825 (diff)
downloadcurl-6ea91af2f8f787f16b1bde88ae2293adcc961986.tar.gz
fix compiler warning
Diffstat (limited to 'src/getpass.c')
-rw-r--r--src/getpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getpass.c b/src/getpass.c
index 7209a2ab1..8d20eb48c 100644
--- a/src/getpass.c
+++ b/src/getpass.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -113,7 +113,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
fputs(prompt, stderr);
for(i=0; i<buflen; i++) {
- buffer[i] = getch();
+ buffer[i] = (char)getch();
if ( buffer[i] == '\r' || buffer[i] == '\n' ) {
buffer[i] = 0;
break;