Use pclose instead of fclose
This commit is contained in:
parent
b25738c709
commit
ccd4895154
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue