Commit 22827870 authored by Simon Kelley's avatar Simon Kelley

Fix botch introduced by 56144132

parent 4583dd9e
...@@ -503,7 +503,7 @@ int parse_hex(char *in, unsigned char *out, int maxlen, ...@@ -503,7 +503,7 @@ int parse_hex(char *in, unsigned char *out, int maxlen,
return -1; return -1;
out[i] = strtol(&in[j*2], NULL, 16); out[i] = strtol(&in[j*2], NULL, 16);
mask = mask << 1; mask = mask << 1;
if (i++ == maxlen) if (++i == maxlen)
break; break;
if (j < bytes - 1) if (j < bytes - 1)
in[(j+1)*2] = sav; in[(j+1)*2] = sav;
......
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