slirp: tftp: Rework filename handling
commit9367964ae21d2a41517c76c87dd26c79abcfe937
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 24 Jun 2009 12:42:30 +0000 (24 14:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 13:52:47 +0000 (29 08:52 -0500)
treec888654b95b43ec9cef82dd5af662cae2b45badf
parent20c24bf24ddf91fd9ab5d827fdd0fe14397de412
slirp: tftp: Rework filename handling

This changes the filename handling from a static buffer in tftp_session
for the client-provided name + prefix to a dynamically allocated buffer
that keeps the combined path in one place.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
slirp/tftp.c