diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-11 11:02:03 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-11 11:02:03 +0000 |
commit | 3d8cc91c917cd5f08cfd8c972ce62c78955987a6 (patch) | |
tree | bae060d484f94e84f54afe1fe431cfbab2c3c01b /STL | |
parent | c8d5d9665e9bd9891f2ac67c5a53221ff6b61ac2 (diff) | |
download | ATCD-3d8cc91c917cd5f08cfd8c972ce62c78955987a6.tar.gz |
*** empty log message ***
Diffstat (limited to 'STL')
-rw-r--r-- | STL/ChangeLog | 5 | ||||
-rw-r--r-- | STL/bstring.h | 4 |
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; } }; |