diff --git a/sim_ether.c b/sim_ether.c index 081117b0..aba1e978 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -831,7 +831,7 @@ if (f == NULL) return FALSE; if (fgets(response, sizeof(response), f)) sim_trim_endspc (response); -fclose(f); +pclose(f); #endif return (0 == strcmp(response, "0")); }