summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_error.c')
-rw-r--r--src/lib/eina/eina_error.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/eina/eina_error.c b/src/lib/eina/eina_error.c
index 7922933e59..b9f05a5a9d 100644
--- a/src/lib/eina/eina_error.c
+++ b/src/lib/eina/eina_error.c
@@ -115,7 +115,13 @@ _eina_error_msg_alloc(void)
115/* Windows has strerror_s(), similar to POSIX strerror_r() */ 115/* Windows has strerror_s(), similar to POSIX strerror_r() */
116static inline int strerror_r(int errnum, char *buf, size_t buflen) 116static inline int strerror_r(int errnum, char *buf, size_t buflen)
117{ 117{
118 return strerror_s(buf, buflen, errnum); 118 int ret;
119
120 ret = strerror_s(buf, buflen, errnum);
121 if (strcmp(buf, "Unknown error") == 0)
122 snprintf(buf, buflen, "Unknown error %d", errnum);
123
124 return ret;
119} 125}
120#endif 126#endif
121 127