snprintf does return a signed integer

assert if returned value is neagtive