Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Oct 4, 2023
1 parent 912af05 commit 0401d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ void perror_fatal_code(const char *s, int err) {

#ifdef MINGW
fprintf(stderr, "%s: %s\n", s, strerror(err));
exit(YICES_EXIT_INTERNAL_ERROR);
#else
strerror_r(err, buffer, sizeof(buffer));
fprintf(stderr, "%s: %s\n", s, buffer);
exit(YICES_EXIT_INTERNAL_ERROR);
#endif

exit(YICES_EXIT_INTERNAL_ERROR);
}

0 comments on commit 0401d9f

Please sign in to comment.