Bugzilla bug 162786: fixed a bug where PR_snprintf returns wrong string length (one too small), in the case where the buffer overflows.  The patch is contributed by Jonathan Tash (tash@kontiki.com). r=wtc.
Bugzilla bug 162786: fixed a bug where PR_snprintf returns wrong string
length (one too small), in the case where the buffer overflows.  The patch
is contributed by Jonathan Tash (tash@kontiki.com). r=wtc.

makotokato/nsprpub,makotokato/nsprpub,makotokato/nsprpub,makotokato/nsprpub,makotokato/nsprpub