diff --git a/unix/uxnet.c b/unix/uxnet.c index 896f473b..e4e07b0a 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -106,10 +106,7 @@ void sk_cleanup(void) char *error_string(int error) { - char *ret = smalloc(strlen(strerror(error)) + - strlen("Network error: ")); - sprintf(ret, "Network error: %s",strerror(error)); - return ret; + return strerror(error); } SockAddr sk_namelookup(char *host, char **canonicalname)