Author: mturk Date: Mon Apr 27 18:27:18 2009 New Revision: 769090 URL: http://svn.apache.org/viewvc?rev=769090&view=rev Log: MSVC requires strict sizes
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/string.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/string.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/string.c?rev=769090&r1=769089&r2=769090&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/string.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/string.c Mon Apr 27 18:27:18 2009 @@ -140,10 +140,10 @@ ACR_DECLARE(char *) ACR_Itoa(acr_int_t n) { - const int BUFFER_SIZE = sizeof(jint) * 3 + 2; + const int BUFFER_SIZE = 16; char *start; int negative; - char buf[BUFFER_SIZE]; + char buf[16]; if (!buf) return NULL; @@ -168,10 +168,10 @@ ACR_DECLARE(char *) ACR_Ltoa(acr_long_t n) { - const int BUFFER_SIZE = sizeof(jlong) * 3 + 2; + const int BUFFER_SIZE = 32; char *start; int negative; - char buf[BUFFER_SIZE]; + char buf[32]; if (!buf) return NULL;