mktemp manpage says that any arbitrary number of X's in the template are OK (it talks about varying numbers and gives no limit) and it has example code with both 4 and 6 X's in the template. Operationally, it appears to be limited to exactly 6. One or the other has to be fixed so that they agree...
fixed in mktemp-1.5 in rawhide