diff options
author | unknown <hf@deer.(none)> | 2003-07-03 16:50:17 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-07-03 16:50:17 +0500 |
commit | c9dab0787c172f855a55f84c96970cfcce5f2096 (patch) | |
tree | 56a92f73d3f498148f62aec318ab51463380a8e8 /sql/item_strfunc.cc | |
parent | a9df65e595d6beda3057c9ef37dc3700379500a1 (diff) | |
parent | f7f191904b91136fa1f79bf11bb4ee3400d8a48f (diff) | |
download | mariadb-git-c9dab0787c172f855a55f84c96970cfcce5f2096.tar.gz |
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0.628
sql/item_strfunc.cc:
Auto merged
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index d18436d2c61..838fca807a2 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1483,7 +1483,7 @@ String *Item_func_format::val_str(String *str) str= copy_if_not_alloced(&tmp_str,str,length); str->length(length); tmp= (char*) str->ptr()+length - dec-1; - for (pos= (char*) str->ptr()+length ; pos != tmp; pos--) + for (pos= (char*) str->ptr()+length-1; pos != tmp; pos--) pos[0]= pos[-(int) diff]; while (diff) { |