openjp2/j2k: replace sprintf calls with snprintf