aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/tftp.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-11-19 10:54:26 -0600
committerRob Landley <rob@landley.net>2018-11-19 10:54:26 -0600
commit3d4219014ae5f5a6553423994ff5ccd1d490a6fc (patch)
tree1be5bf5d1c054d8f385a1d9dd109513641b52f4a /toys/pending/tftp.c
parent503e6362290d56bce0ed71f8164f24e25108bbbc (diff)
downloadtoybox-3d4219014ae5f5a6553423994ff5ccd1d490a6fc.tar.gz
Eduardas Meile reported "The -Werror=format-security flag is applied by
default in Yocto 2.6 Thud release" and identified several error_exit() and friends that should use the _raw versions.
Diffstat (limited to 'toys/pending/tftp.c')
-rw-r--r--toys/pending/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tftp.c b/toys/pending/tftp.c
index 30ebe81c..1e32fdf4 100644
--- a/toys/pending/tftp.c
+++ b/toys/pending/tftp.c
@@ -328,7 +328,7 @@ static int file_get(void)
TFTP_ES_UNKID, TFTP_ES_EXISTS,
TFTP_ES_UNKUSER, TFTP_ES_NEGOTIATE};
if (rblockno && (rblockno < 9)) message = arr[rblockno - 1];
- error_msg(message);
+ error_msg_raw(message);
}
else if (blockno == 1 && opcode == TFTP_OP_OACK) {
len = mkpkt_ack(packet, 0);