summaryrefslogtreecommitdiff
path: root/boost/wave/cpp_exceptions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/wave/cpp_exceptions.hpp')
-rw-r--r--boost/wave/cpp_exceptions.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/wave/cpp_exceptions.hpp b/boost/wave/cpp_exceptions.hpp
index 805e56fc22..e2cc933953 100644
--- a/boost/wave/cpp_exceptions.hpp
+++ b/boost/wave/cpp_exceptions.hpp
@@ -155,7 +155,7 @@ public:
code(code)
{
unsigned int off = 0;
- while (off < sizeof(buffer) && *what_)
+ while (off < sizeof(buffer) - 1 && *what_)
buffer[off++] = *what_++;
buffer[off] = 0;
}