diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-05-26 14:35:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-26 14:35:22 +0000 |
commit | 1d02c374c8877d430f4ab35a790fc02f02974704 (patch) | |
tree | 8d03d2226cc9322262308eba5eb0754d58a71a98 /src/regex.cpp | |
parent | b1522d279d22725a731cb8db93ec2d077028374c (diff) | |
download | libbu++-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 '')
-rw-r--r-- | src/regex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.cpp b/src/regex.cpp index b69f215..e634639 100644 --- a/src/regex.cpp +++ b/src/regex.cpp | |||
@@ -86,7 +86,7 @@ void Bu::RegEx::getSubStringRange( int nIndex, int &iStart, int &iEnd ) | |||
86 | 86 | ||
87 | Bu::FString Bu::RegEx::getSubString( int nIndex ) | 87 | Bu::FString Bu::RegEx::getSubString( int nIndex ) |
88 | { | 88 | { |
89 | regmatch_t *Subs = aSubStr; | 89 | // regmatch_t *Subs = aSubStr; |
90 | return Bu::FString( | 90 | return Bu::FString( |
91 | sTest.getStr()+aSubStr[nIndex].rm_so, | 91 | sTest.getStr()+aSubStr[nIndex].rm_so, |
92 | aSubStr[nIndex].rm_eo - aSubStr[nIndex].rm_so | 92 | aSubStr[nIndex].rm_eo - aSubStr[nIndex].rm_so |