One snprintf() was open-coded using memset()+strcpy(), and the other one had a duplicate memset().
snprintf()
memset()
strcpy()