Change the signature for StrNDup to match the implementation. This

mismatch causes problems if attempting to build d8 with readline
support.

Review URL: http://codereview.chromium.org/414033

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3342 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2009-11-20 13:08:44 +00:00
parent 72d7453dc2
commit 1fe8655fbc

View File

@ -124,7 +124,7 @@ static void DeleteArray(T* array) {
// and StrNDup uses new and calls the FatalProcessOutOfMemory handler
// if allocation fails.
char* StrDup(const char* str);
char* StrNDup(const char* str, size_t n);
char* StrNDup(const char* str, int n);
// Allocation policy for allocating in the C free store using malloc