External api fix for a previous patch in bug 103870. r=neil
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Mon, 13 May 2013 20:50:19 +0300
changeset 15607 43c50335022a5c29dc09d3a6316bac0877093692
parent 15606 ea0454a6a0d38dfc0198395cbd9adc66beccc82c
child 15608 f1cf1ac78c06fd5fc287c094181a78f38a4ca827
push id942
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 19:15:38 +0000
treeherdercomm-beta@0e1a1c4a9f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil
bugs103870
External api fix for a previous patch in bug 103870. r=neil
mailnews/mime/emitters/nsMimeRebuffer.cpp
--- a/mailnews/mime/emitters/nsMimeRebuffer.cpp
+++ b/mailnews/mime/emitters/nsMimeRebuffer.cpp
@@ -30,17 +30,17 @@ MimeRebuffer::IncreaseBuffer(const nsACS
 uint32_t
 MimeRebuffer::ReduceBuffer(uint32_t numBytes)
 {
   if (numBytes == 0)
     return mBuf.Length();
 
   if (numBytes >= mBuf.Length())
   {
-    mBuf.Truncate(0);
+    mBuf.Truncate();
     return 0;
   }
 
   mBuf.Cut(0, numBytes);
   return mBuf.Length();
 }
 
 nsACString &