Add debug output to stderr when decode_hex() is called on invalid hex input

This commit is contained in:
Duke
2023-12-24 12:01:20 -08:00
parent 943ffbc1bf
commit 497ace0922

View File

@@ -858,7 +858,7 @@ int32_t unhex(char c)
int32_t hex;
if ( (hex= _unhex(c)) < 0 )
{
//printf("unhex: illegal hexchar.(%c)\n",c);
fprintf(stderr,"unhex: illegal hexchar.(%c)\n",c);
}
return(hex);
}