summaryrefslogtreecommitdiff
path: root/STL
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-11 11:02:03 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-11 11:02:03 +0000
commit8b7e39c0dfaef5a30d5adf40f6ed5568fd8b5d8a (patch)
treebae060d484f94e84f54afe1fe431cfbab2c3c01b /STL
parent497284175ffc33d4da5f1b89a9a8284eaecb593d (diff)
downloadATCD-8b7e39c0dfaef5a30d5adf40f6ed5568fd8b5d8a.tar.gz
*** empty log message ***
Diffstat (limited to 'STL')
-rw-r--r--STL/ChangeLog5
-rw-r--r--STL/bstring.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/STL/ChangeLog b/STL/ChangeLog
index c47b49229a7..7d127b7a51f 100644
--- a/STL/ChangeLog
+++ b/STL/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec 10 20:14:56 1996 Irfan Pyarali <irfan@flamenco.cs.wustl.edu>
+
+ * bstring.h: Fixed string_char_baggage::copy() so that the pointer
+ are incremented correctly.
+
Fri Dec 6 02:08:35 1996 Irfan Pyarali <irfan@flamenco.cs.wustl.edu>
* bool.h: Made the defines for bool, true, and false conditional.
diff --git a/STL/bstring.h b/STL/bstring.h
index dd53a07e25c..70a7a544f87 100644
--- a/STL/bstring.h
+++ b/STL/bstring.h
@@ -162,8 +162,8 @@ struct string_char_baggage {
copy (char_type* s1, const char_type* s2, size_t n) _THROW_NONE
{
char_type* s = s1;
- for (size_t i = 0; i < n; ++i)
- assign(*++s1, *++s2);
+ for (size_t i = 0; i < n; ++i, s1++, s2++)
+ assign(*s1, *s2);
return s;
}
};