aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-06-15 13:00:41 +0200
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-06-15 13:00:41 +0200
commit668fbd286f754e5bd561672d12c20ed80bbb5fc5 (patch)
tree480225368e1707ae87252d4aa6ac6cefa415e1a1
parentd15de502ef961f2c0d267f672ef339d5a4280a37 (diff)
downloadlibmicrohttpd-668fbd286f754e5bd561672d12c20ed80bbb5fc5.tar.gz
libmicrohttpd-668fbd286f754e5bd561672d12c20ed80bbb5fc5.zip
test_str_bin_hex: fixed reportingHEADmaster
-rw-r--r--src/microhttpd/test_str_bin_hex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/test_str_bin_hex.c b/src/microhttpd/test_str_bin_hex.c
index 557146eb..7bb7f989 100644
--- a/src/microhttpd/test_str_bin_hex.c
+++ b/src/microhttpd/test_str_bin_hex.c
@@ -137,11 +137,12 @@ expect_decoded_n (const char *const hex, const size_t hex_len,
137 "Wrong output data:\n"); 137 "Wrong output data:\n");
138 } 138 }
139 } 139 }
140 if (fill_chr != buf[res_size]) 140 if (((0 == res_size) && (fill_chr != buf[bin_size]))
141 || ((0 != res_size) && (fill_chr != buf[res_size])))
141 { 142 {
142 check_res = 1; 143 check_res = 1;
143 fprintf (stderr, 144 fprintf (stderr,
144 "'MHD_str_pct_decode_strict_n_ ()' FAILED: " 145 "'MHD_hex_to_bin ()' FAILED: "
145 "A char written outside the buffer:\n"); 146 "A char written outside the buffer:\n");
146 } 147 }
147 if (0 != check_res) 148 if (0 != check_res)