Author: [EMAIL PROTECTED]
Date: Thu Nov 20 15:53:18 2008
New Revision: 812

Modified:
    branches/bleeding_edge/src/d8.cc

Log:
- Make sure to not mix allocators by using the correct StrDup function.
- Include needed system header.
Review URL: http://codereview.chromium.org/11547

Modified: branches/bleeding_edge/src/d8.cc
==============================================================================
--- branches/bleeding_edge/src/d8.cc    (original)
+++ branches/bleeding_edge/src/d8.cc    Thu Nov 20 15:53:18 2008
@@ -26,6 +26,8 @@
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


+#include <stdlib.h>
+
  #include "d8.h"
  #include "debug.h"
  #include "api.h"
@@ -77,7 +79,7 @@
    char buffer[kBufferSize];
    printf("%s", prompt);
    char* str = fgets(buffer, kBufferSize, stdin);
-  return i::SmartPointer<char>(str ? i::OS::StrDup(str) : str);
+  return i::SmartPointer<char>(str ? i::StrDup(str) : str);
  }



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to