1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Changes to reduce the amount of stack space required. (CVS 2661)

FossilOrigin-Name: b86bd70f301205d6ca66475a425e157b976107e2
This commit is contained in:
drh
2005-09-06 21:40:45 +00:00
parent abfcea25ea
commit 79158e1865
6 changed files with 64 additions and 27 deletions

View File

@@ -1311,10 +1311,14 @@ char *sqlite3OsFullPathname(const char *zRelative){
if( zRelative[0]=='/' ){
sqlite3SetString(&zFull, zRelative, (char*)0);
}else{
char zBuf[5000];
char *zBuf = sqliteMalloc(5000);
if( zBuf==0 ){
return 0;
}
zBuf[0] = 0;
sqlite3SetString(&zFull, getcwd(zBuf, sizeof(zBuf)), "/", zRelative,
sqlite3SetString(&zFull, getcwd(zBuf, 5000), "/", zRelative,
(char*)0);
sqliteFree(zBuf);
}
return zFull;
}