From: Joseph C. Lehner Date: Fri, 5 Feb 2016 16:41:00 +0000 (+0200) Subject: x_basename -> leafname X-Git-Tag: v0.9~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf804d60a9b7ff99a2abb851c459d06e24b2d0b2;p=oweals%2Fnmrpflash.git x_basename -> leafname --- diff --git a/tftp.c b/tftp.c index 8405088..2c71b71 100644 --- a/tftp.c +++ b/tftp.c @@ -40,7 +40,7 @@ enum tftp_opcode { ERR = 5 }; -static const char *x_basename(const char *path) +static const char *leafname(const char *path) { const char *slash, *bslash; @@ -83,7 +83,7 @@ static void pkt_mkwrq(char *pkt, const char *filename) { size_t len = 2; - filename = x_basename(filename); + filename = leafname(filename); if (!is_netascii(filename) || strlen(filename) > 500) { fprintf(stderr, "Overlong/illegal filename; using 'firmware.bin'."); filename = "firmware.bin";