aboutsummaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-26 14:35:22 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-26 14:35:22 +0000
commit1d02c374c8877d430f4ab35a790fc02f02974704 (patch)
tree8d03d2226cc9322262308eba5eb0754d58a71a98 /src/fbasicstring.h
parentb1522d279d22725a731cb8db93ec2d077028374c (diff)
downloadlibbu++-1d02c374c8877d430f4ab35a790fc02f02974704.tar.gz
libbu++-1d02c374c8877d430f4ab35a790fc02f02974704.tar.bz2
libbu++-1d02c374c8877d430f4ab35a790fc02f02974704.tar.xz
libbu++-1d02c374c8877d430f4ab35a790fc02f02974704.zip
Fixed most of the compilation warnings, and a valgrind warning in the fstring's
remove function. memcpy can't do overlapping memory, changed it to use memmove.
Diffstat (limited to 'src/fbasicstring.h')
-rw-r--r--src/fbasicstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fbasicstring.h b/src/fbasicstring.h
index 670873e..19853f5 100644
--- a/src/fbasicstring.h
+++ b/src/fbasicstring.h
@@ -1040,7 +1040,7 @@ namespace Bu
1040 nLen = core->nLength-nPos; 1040 nLen = core->nLength-nPos;
1041 flatten(); 1041 flatten();
1042 _hardCopy(); 1042 _hardCopy();
1043 cpy( core->pFirst->pData+nPos, core->pFirst->pData+nPos+nLen, core->nLength-nPos-nLen+1 ); 1043 memmove( core->pFirst->pData+nPos, core->pFirst->pData+nPos+nLen, core->nLength-nPos-nLen+1 );
1044 core->nLength -= nLen; 1044 core->nLength -= nLen;
1045 core->pFirst->nLength -= nLen; 1045 core->pFirst->nLength -= nLen;
1046 } 1046 }