Fixed stringfn terminator placement

@mikes-spindance take a look.  This should fix the issue you were worried about.  I did verify that this is how snprintf does it as well.