1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Cherry-pick the lemon.c updates out of the lemon-update-2010 branch into

the trunk.

FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415
This commit is contained in:
drh
2010-11-23 20:55:27 +00:00
parent c84e033c92
commit df60971765
3 changed files with 18 additions and 12 deletions

View File

@ -20,7 +20,13 @@
#endif
#ifdef __WIN32__
extern int access();
#ifdef __cplusplus
extern "C" {
#endif
extern int access(const char *path, int mode);
#ifdef __cplusplus
}
#endif
#else
#include <unistd.h>
#endif
@ -3263,7 +3269,7 @@ PRIVATE char *append_str(const char *zText, int n, int p1, int p2){
}
n = lemonStrlen(zText);
}
if( n+sizeof(zInt)*2+used >= alloced ){
if( (int) (n+sizeof(zInt)*2+used) >= alloced ){
alloced = n + sizeof(zInt)*2 + used + 200;
z = (char *) realloc(z, alloced);
}