aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-10 11:16:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-10 11:16:39 +0000
commitcec392c340c0cf15f90e0845755454d4cc95c4fc (patch)
treed60c92b82bc33618f843d61f07565894a50f83f1
parentdf3a4b05393c8e3bed02fc5a551d31787741ef96 (diff)
downloadbusybox-w32-cec392c340c0cf15f90e0845755454d4cc95c4fc.tar.gz
busybox-w32-cec392c340c0cf15f90e0845755454d4cc95c4fc.tar.bz2
busybox-w32-cec392c340c0cf15f90e0845755454d4cc95c4fc.zip
Can't use RESERVE_CONFIG_BUFFER here since the allocation
size varies meaning BUFFERS_GO_ON_STACK will fail git-svn-id: svn://busybox.net/trunk/busybox@3643 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--networking/tftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 38a6f81f0..1e5dddbd2 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -162,7 +162,9 @@ static inline int tftp(const int cmd, const struct hostent *host,
162 int want_option_ack = 0; 162 int want_option_ack = 0;
163#endif 163#endif
164 164
165 RESERVE_CONFIG_BUFFER(buf, tftp_bufsize + 4); /* Opcode + Block # + Data */ 165 /* Can't use RESERVE_CONFIG_BUFFER here since the allocation
166 * size varies meaning BUFFERS_GO_ON_STACK would fail */
167 char *buf=xmalloc(tftp_bufsize + 4);
166 168
167 tftp_bufsize += 4; 169 tftp_bufsize += 4;
168 170