aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-05-28 16:00:21 +0000
committerdrh <drh@noemail.net>2004-05-28 16:00:21 +0000
commit51846b56edaba72e986cd7128f38547690c48671 (patch)
treef6b4001f3d42bdca49717dff08c6b7d0b135c11d /src/util.c
parent76d505baadc5afeaab6cdfb862c8a666a9f2eb5c (diff)
downloadsqlite-51846b56edaba72e986cd7128f38547690c48671.tar.gz
sqlite-51846b56edaba72e986cd7128f38547690c48671.zip
Factor common code for generating index keys into a procedure. Other
speed improvements and bug fixes. (CVS 1487) FossilOrigin-Name: 6661bb5f9c1692f94b8b7d900b6be07f027e6324
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index 92dff9131..4aea0c802 100644
--- a/src/util.c
+++ b/src/util.c
@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
-** $Id: util.c,v 1.93 2004/05/28 11:37:28 danielk1977 Exp $
+** $Id: util.c,v 1.94 2004/05/28 16:00:22 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -393,7 +393,7 @@ void sqlite3SetNString(char **pz, ...){
while( (z = va_arg(ap, const char*))!=0 ){
n = va_arg(ap, int);
if( n<=0 ) n = strlen(z);
- strncpy(zResult, z, n);
+ memcpy(zResult, z, n);
zResult += n;
}
*zResult = 0;
@@ -1330,7 +1330,3 @@ void *sqlite3HexToBlob(const char *z){
}
return zBlob;
}
-
-
-
-