projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid potential memory leak.
[u/mdw/putty]
/
unix
/
uxnet.c
diff --git
a/unix/uxnet.c
b/unix/uxnet.c
index
896f473
..
e4e07b0
100644
(file)
--- a/
unix/uxnet.c
+++ b/
unix/uxnet.c
@@
-106,10
+106,7
@@
void sk_cleanup(void)
char *error_string(int error)
{
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)
}
SockAddr sk_namelookup(char *host, char **canonicalname)