Index: res/res_config_odbc.c =================================================================== --- res/res_config_odbc.c (revision 294568) +++ res/res_config_odbc.c (working copy) @@ -109,9 +109,8 @@ /* We use ^XX, instead of %XX because '%' is a special character in SQL */ snprintf(eptr, encodebuf + sizeof(encodebuf) - eptr, "^%02hhX", *vptr); eptr += 3; - vptr++; } else { - *eptr++ = *vptr++; + *eptr++ = *vptr; } } if (eptr < encodebuf + sizeof(encodebuf)) {