Isn't snprintf the standard way to do this?  Not sure what this "secure" MSFT version does.