length returned by PR_GetErrorTextLength so that there is room for the
terminating null byte. Ensure the buffer is null-terminated when the
error text length is 0 because PR_GetErrorText does not copy anything to
the buffer in that case. The patch is contributed by Mike Hommey
<mh+mozilla@glandium.org>. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@259405 18797224-902f-48f8-a5cc-f745e15eee43