adjusted to the changed getpass_r()
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 09:19:09 +0000 (09:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 09:19:09 +0000 (09:19 +0000)
lib/url.c

index f321290..9e32eaf 100644 (file)
--- 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 */
 }