aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-12-06 21:43:55 +0000
committerdrh <drh@noemail.net>2003-12-06 21:43:55 +0000
commit41743984bf57abf76e04cab439740d4f3f50e710 (patch)
tree1732754ca7ccf7812be0db14537f09be25b8694e /src/auth.c
parent3a6629d27ee0d4d2fb98dcfdab28d1909fc2f672 (diff)
downloadsqlite-41743984bf57abf76e04cab439740d4f3f50e710.tar.gz
sqlite-41743984bf57abf76e04cab439740d4f3f50e710.zip
Always use "(char*)0" to terminate the argument list of sqliteSetString().
This is needed for 64-bit systems that use a 32-bit integer by default. (CVS 1126) FossilOrigin-Name: 656c90387a4a714b4f31040ece9b0e15e30934af
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/auth.c b/src/auth.c
index a7566d748..403f884b5 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -14,7 +14,7 @@
** systems that do not need this facility may omit it by recompiling
** the library with -DSQLITE_OMIT_AUTHORIZATION=1
**
-** $Id: auth.c,v 1.10 2003/05/10 03:36:54 drh Exp $
+** $Id: auth.c,v 1.11 2003/12/06 21:43:56 drh Exp $
*/
#include "sqliteInt.h"
@@ -89,7 +89,7 @@ static void sqliteAuthBadReturnCode(Parse *pParse, int rc){
sprintf(zBuf, "(%d)", rc);
sqliteSetString(&pParse->zErrMsg, "illegal return value ", zBuf,
" from the authorization function - should be SQLITE_OK, "
- "SQLITE_IGNORE, or SQLITE_DENY", 0);
+ "SQLITE_IGNORE, or SQLITE_DENY", (char*)0);
pParse->nErr++;
pParse->rc = SQLITE_MISUSE;
}
@@ -151,10 +151,10 @@ void sqliteAuthRead(
}else if( rc==SQLITE_DENY ){
if( db->nDb>2 || pExpr->iDb!=0 ){
sqliteSetString(&pParse->zErrMsg,"access to ", zDBase, ".",
- pTab->zName, ".", zCol, " is prohibited", 0);
+ pTab->zName, ".", zCol, " is prohibited", (char*)0);
}else{
sqliteSetString(&pParse->zErrMsg,"access to ", pTab->zName, ".",
- zCol, " is prohibited", 0);
+ zCol, " is prohibited", (char*)0);
}
pParse->nErr++;
pParse->rc = SQLITE_AUTH;
@@ -184,7 +184,7 @@ int sqliteAuthCheck(
}
rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext);
if( rc==SQLITE_DENY ){
- sqliteSetString(&pParse->zErrMsg, "not authorized", 0);
+ sqliteSetString(&pParse->zErrMsg, "not authorized", (char*)0);
pParse->rc = SQLITE_AUTH;
pParse->nErr++;
}else if( rc!=SQLITE_OK && rc!=SQLITE_IGNORE ){