fix the appnd() macro - it needs a block
when called below in if (ua_prepend[i]) appnd(w, space, ua_prepend[i], l); appnd would exand such that only the first line (l = strlen(r)) was conditional on ua_prepend[i] being non-null, which then would trigger a null pointer dereference in strncpy. This is a particularly embarassing bug.
Showing
Please register or sign in to comment