projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A major purpose of PuTTY's memory-allocation functions is to succeed or die
[u/mdw/putty]
/
pscp.c
diff --git
a/pscp.c
b/pscp.c
index
9259dd0
..
c0bcc60
100644
(file)
--- a/
pscp.c
+++ b/
pscp.c
@@
-213,8
+213,6
@@
int from_backend(void *frontend, int is_stderr, const char *data, int datalen)
if (pendsize < pendlen + len) {
pendsize = pendlen + len + 4096;
pending = sresize(pending, pendsize, unsigned char);
- if (!pending)
- fatalbox("Out of memory");
}
memcpy(pending + pendlen, p, len);
pendlen += len;