Skip to content
Snippets Groups Projects
Commit 393384f2 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix reports of errno for system calls.


This patch fixes two issues:
* It only makes sense to report errno if a system call has actually
  failed.
* You can't call strerror() two times in printf(), since it might
  use a single static buffer.

Signed-off-by: default avatarMichael Tuexen <tuexen@fh-muenster.de>
parent 124b1f3f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment