Ticket #7050: cpplexer_exceptions.hpp_patch

File cpplexer_exceptions.hpp_patch, 634 bytes (added by g.gupta@…, 10 years ago)

Patch file for the reported Bug.

Line 
1diff -Naur boost_1_50_0_beta1/boost/wave/cpplexer/cpplexer_exceptions.hpp boost_1_50_0_beta1_patch/boost/wave/cpplexer/cpplexer_exceptions.hpp
2--- boost_1_50_0_beta1/boost/wave/cpplexer/cpplexer_exceptions.hpp 2012-05-26 20:17:03.000000000 +0530
3+++ boost_1_50_0_beta1_patch/boost/wave/cpplexer/cpplexer_exceptions.hpp 2012-06-29 14:25:23.000000000 +0530
4@@ -180,7 +180,7 @@
5 level(severity_level(code)), code(code)
6 {
7 unsigned int off = 0;
8- while (off < sizeof(buffer) && *what_)
9+ while (off < (sizeof(buffer)-1) && *what_)
10 buffer[off++] = *what_++;
11 buffer[off] = 0;
12 }