[SDK] Do not use a NUL file while calculating format string length