From: ager@chromium.org Date: Fri, 20 Nov 2009 13:08:44 +0000 (+0000) Subject: Change the signature for StrNDup to match the implementation. This X-Git-Tag: upstream/4.7.83~22910 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fe8655fbc29cf1749b99c67cdfbfda808d1071d;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/allocation.h b/src/allocation.h index 586c4fd0d..70a3a0388 100644 --- a/src/allocation.h +++ b/src/allocation.h @@ -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