summaryrefslogtreecommitdiff
path: root/isam
diff options
context:
space:
mode:
authordlenev@brandersnatch.localdomain <>2004-05-27 17:54:40 +0400
committerdlenev@brandersnatch.localdomain <>2004-05-27 17:54:40 +0400
commit03b705ff4408f011eebdadffeb249e9ef533c3ea (patch)
tree0a3ac45d591f6d81591a9b4ec19f2d45e2c29570 /isam
parentfc85c80b88c0717684184f22a91f8b027a8f8559 (diff)
downloadmariadb-git-03b705ff4408f011eebdadffeb249e9ef533c3ea.tar.gz
Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should
produce hex digits in lower case). (fixed version) Replaced _dig_vec array with two _dig_vec_upper/_dig_vec_lower arrays. Added extra argument to int2str function which controls case of digits you get. Replaced lot of invocations of int2str for decimal radix with more optimized int10_to_str() function. Removed unused my_itoa/my_ltoa functions.
Diffstat (limited to 'isam')
-rw-r--r--isam/isamchk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isam/isamchk.c b/isam/isamchk.c
index 513c1ea3a5d..cccd7cf4127 100644
--- a/isam/isamchk.c
+++ b/isam/isamchk.c
@@ -1800,12 +1800,12 @@ my_string name;
if (buff[0] == ',')
strmov(buff,buff+2);
#endif
- len=(uint) (int2str((long) share->rec[field].base.length,length,10) -
+ len=(uint) (int10_to_str((long) share->rec[field].base.length,length,10) -
length);
if (type == FIELD_BLOB)
{
length[len]='+';
- VOID(int2str((long) sizeof(char*),length+len+1,10));
+ VOID(int10_to_str((long) sizeof(char*),length+len+1,10));
}
printf("%-6d%-6d%-7s%-35s",field+1,start,length,buff);
#ifndef NOT_PACKED_DATABASES