Overview
SHA1 Hash: | 9e80dc66cf7e6781419db0a60b01964c76a31bae |
---|---|
Date: | 2008-10-18 13:03:36 |
User: | drh |
Comment: | Use sqlite3_snprintf() instead of snprintf() since the latter is not available on all platforms. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/login.c from [debcf9a389] to [1a6cb22669].
@@ -273,11 +273,11 @@ atoi(zCookie), zCookie, zRemoteAddr ); }else if( zCookie[0]=='a' ){ uid = db_int(0, "SELECT uid FROM user WHERE login='anonymous'"); } - snprintf(g.zCsrfToken, sizeof(g.zCsrfToken), "%.10s", zCookie); + sqlite3_snprintf(sizeof(g.zCsrfToken), g.zCsrfToken, "%.10s", zCookie); } if( uid==0 ){ uid = db_int(0, "SELECT uid FROM user WHERE login='nobody'"); if( uid==0 ){