summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-18 12:51:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-18 12:52:06 +0200
commit2487c54d1c6ff00d3d37bb326fc86206764ecfdc (patch)
treec633d994c357147064a3be6a27cd4c483601c5ae
parentfd1db0b8eba8e86c5a7e1a3c685e76975d21d93c (diff)
Fixed uses of memmove in DynamicList.
-rw-r--r--xml2cmp/source/support/list.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml2cmp/source/support/list.hxx b/xml2cmp/source/support/list.hxx
index 80b9e5e647ea..cf949a070e2a 100644
--- a/xml2cmp/source/support/list.hxx
+++ b/xml2cmp/source/support/list.hxx
@@ -227,7 +227,7 @@ DynamicList<XY>::insert(unsigned pos, XY * const & elem_)
return;
this->checkSize(this->len+2);
- memmove(this->inhalt[pos+1], this->inhalt[pos], (this->len-pos) * sizeof(XY*) );
+ memmove(&this->inhalt[pos+1], &this->inhalt[pos], (this->len-pos) * sizeof(XY*) );
this->inhalt[pos] = elem_;
this->len++;
}
@@ -240,7 +240,7 @@ DynamicList<XY>::remove( unsigned pos )
return;
this->len--;
delete this->inhalt[pos];
- memmove(this->inhalt[pos], this->inhalt[pos+1], (this->len-pos) * sizeof(XY*) );
+ memmove(&this->inhalt[pos], &this->inhalt[pos+1], (this->len-pos) * sizeof(XY*) );
}