Use pclose instead of fclose

This commit is contained in:
Matthias Schiffer 2015-05-12 17:29:57 +02:00
parent b25738c709
commit ccd4895154

View file

@ -57,7 +57,7 @@ static int authenticate(const char *user, const char *pass) {
fputc(0, stream);
fputs(pass, stream);
int status = fclose(stream);
int status = pclose(stream);
if (WIFEXITED(status))
return WEXITSTATUS(status);