Commit 2b824d25 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Allow newlines in long strings to sendhex

parent aa8f6a1b
......@@ -48,7 +48,7 @@ vtc_hex_to_bin(struct vtclog *vl, const char *arg)
vsb = VSB_new_auto();
AN(vsb);
for (; *arg != '\0'; arg++) {
if (vct_issp(*arg))
if (vct_issp(*arg) || *arg == '\n')
continue;
c = (uint8_t)*arg;
if (c >= '0' && c <= '9')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment