From 6ced1ba6151e74d87c06d83c3f6eef472ee38b25 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 Dec 2000 08:04:04 +0000 Subject: [PATCH] changed third argument to size_t to match SCO prototype --- lib/getpass.c | 2 +- lib/getpass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/getpass.c b/lib/getpass.c index f5833cc321..d9d19322cc 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -71,7 +71,7 @@ # define perror(x) fprintf(stderr, "Error in: %s\n", x) #endif -char *getpass_r(const char *prompt, char *buffer, int buflen) +char *getpass_r(const char *prompt, char *buffer, size_t buflen) { FILE *infp; FILE *outfp; diff --git a/lib/getpass.h b/lib/getpass.h index 6245f22957..ab22bb810c 100644 --- a/lib/getpass.h +++ b/lib/getpass.h @@ -3,6 +3,6 @@ /* * Returning NULL will abort the continued operation! */ -char* getpass_r(char *prompt, char* buffer, int buflen ); +char* getpass_r(char *prompt, char* buffer, size_t buflen ); #endif