projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
re PR libstdc++/58415 (__sso_string_base move constructor does not null terminate...
[gcc.git]
/
libstdc++-v3
/
include
/
ext
/
sso_string_base.h
diff --git
a/libstdc++-v3/include/ext/sso_string_base.h
b/libstdc++-v3/include/ext/sso_string_base.h
index 9e5b50e6e241cf76f4035f0b21c167583cdce112..6cb4302b6880c8aefc5322d19ed44a8d8ce108d7 100644
(file)
--- a/
libstdc++-v3/include/ext/sso_string_base.h
+++ b/
libstdc++-v3/include/ext/sso_string_base.h
@@
-361,9
+361,9
@@
_GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_capacity(__rcs._M_allocated_capacity);
}
- _M_length(__rcs._M_length());
- __rcs._M_length(0);
+ _M_set_length(__rcs._M_length());
__rcs._M_data(__rcs._M_local_data);
+ __rcs._M_set_length(0);
}
#endif