summaryrefslogtreecommitdiff
path: root/STL
diff options
context:
space:
mode:
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;
}
};