diff options
author | monty@mashka.mysql.fi <> | 2002-06-11 11:20:31 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-06-11 11:20:31 +0300 |
commit | 2aecdd1a91bf8386829146609ce0219c51793841 (patch) | |
tree | 8fcaabe013fff43cf466235067f2c47f0cd66531 /myisam/ft_test1.c | |
parent | db41437a100e204e60f45d5c9a6b26f63e512659 (diff) | |
download | mariadb-git-2aecdd1a91bf8386829146609ce0219c51793841.tar.gz |
Big code cleanup/review before 4.0.2 release.
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
Diffstat (limited to 'myisam/ft_test1.c')
-rw-r--r-- | myisam/ft_test1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/myisam/ft_test1.c b/myisam/ft_test1.c index 6fa347f594a..cb0b6054f0a 100644 --- a/myisam/ft_test1.c +++ b/myisam/ft_test1.c @@ -205,7 +205,7 @@ void create_record(char *pos, int n) { uint tmp; char *ptr; - strncpy(blob_key,data[n].f0,keyinfo[0].seg[0].length); + strnmov(blob_key,data[n].f0,keyinfo[0].seg[0].length); tmp=strlen(blob_key); int4store(pos,tmp); ptr=blob_key; @@ -215,21 +215,21 @@ void create_record(char *pos, int n) else if (recinfo[0].type == FIELD_VARCHAR) { uint tmp; - strncpy(pos+2,data[n].f0,keyinfo[0].seg[0].length); + strnmov(pos+2,data[n].f0,keyinfo[0].seg[0].length); tmp=strlen(pos+2); int2store(pos,tmp); pos+=recinfo[0].length; } else { - strncpy(pos,data[n].f0,keyinfo[0].seg[0].length); + strnmov(pos,data[n].f0,keyinfo[0].seg[0].length); pos+=recinfo[0].length; } if (recinfo[1].type == FIELD_BLOB) { uint tmp; char *ptr; - strncpy(blob_key,data[n].f2,keyinfo[0].seg[0].length); + strnmov(blob_key,data[n].f2,keyinfo[0].seg[0].length); tmp=strlen(blob_key); int4store(pos,tmp); ptr=blob_key; @@ -239,14 +239,14 @@ void create_record(char *pos, int n) else if (recinfo[1].type == FIELD_VARCHAR) { uint tmp; - strncpy(pos+2,data[n].f2,keyinfo[0].seg[0].length); + strnmov(pos+2,data[n].f2,keyinfo[0].seg[0].length); tmp=strlen(pos+2); int2store(pos,tmp); pos+=recinfo[1].length; } else { - strncpy(pos,data[n].f2,keyinfo[0].seg[0].length); + strnmov(pos,data[n].f2,keyinfo[0].seg[0].length); pos+=recinfo[1].length; } } |