From: Daniel Stenberg Date: Fri, 10 Nov 2000 09:19:09 +0000 (+0000) Subject: adjusted to the changed getpass_r() X-Git-Tag: curl-7_5~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b5c551835d3ac00f12a06b804f54a91eb97e367;p=thirdparty%2Fcurl.git adjusted to the changed getpass_r() --- diff --git a/lib/url.c b/lib/url.c index f3212901a9..9e32eaff43 100644 --- a/lib/url.c +++ b/lib/url.c @@ -266,7 +266,12 @@ CURLcode curl_close(CURL *curl) int my_getpass(void *clientp, char *prompt, char* buffer, int buflen ) { - return getpass_r(prompt, buffer, buflen); + char *retbuf; + retbuf = getpass_r(prompt, buffer, buflen); + if(NULL == retbuf) + return 1; + else + return 0; /* success */ }