libc: make strerror() return "Unknown error" instead of an invalid pointer
This commit is contained in:
parent
7139b4403f
commit
f13c48b562
@ -176,7 +176,7 @@ extern "C"
|
|||||||
case ENOEXEC: return "Exec format error";
|
case ENOEXEC: return "Exec format error";
|
||||||
case EFAULT: return "Bad address";
|
case EFAULT: return "Bad address";
|
||||||
case 0: return "Success";
|
case 0: return "Success";
|
||||||
default: return (char*)(unsigned long int)err;
|
default: return "Unknown error";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user