AmendHub

Download (as of this amendment):

jcs

/

amend

/

amendments

/

190

rsrc: Fix parens


jcs made amendment 190 18 days ago
--- rsrc.c Mon Sep 28 20:49:36 2026 +++ rsrc.c Sun Oct 4 00:06:13 2026 @@ -587,8 +587,8 @@ rsrc_unescape(char **strp, char *end, char quote, unsi return -1; if (*p == '0' && end - p >= 4 && (p[1] == 'x' || p[1] == 'X')) { - if ((hi = rsrc_hexval(p[2]) == -1) || - (lo = rsrc_hexval(p[3]) == -1)) + if ((hi = rsrc_hexval(p[2])) == -1 || + (lo = rsrc_hexval(p[3])) == -1) return -1; dst[len++] = (hi << 4) | lo; p += 4;