summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2025-06-27 11:30:44 +0200
committerToni Uhlig <matzeton@googlemail.com>2025-06-27 11:30:44 +0200
commit06a06a622d2d148e3258a815dade04b86d900935 (patch)
treecb2256fac984e3842213ba7a326f96fba0a11157
parent5a358289c3ba294050c04519aaebc684c5c4526d (diff)
Fixed invalid boost format stringHEADmain
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--fastbuffer.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastbuffer.hpp b/fastbuffer.hpp
index c9275a1..b1af77c 100644
--- a/fastbuffer.hpp
+++ b/fastbuffer.hpp
@@ -74,7 +74,7 @@ public:
if (commit_size > free_space)
throw BufferException(
(boost::format(
- "Buffer overflow: %1% bytes free, %1% bytes required") %
+ "Buffer overflow: %1% bytes free, %2% bytes required") %
free_space % commit_size)
.str());
}
@@ -83,7 +83,7 @@ public:
if (consume_size > unconsumed_space)
throw BufferException(
(boost::format(
- "Buffer underflow: %1% bytes used, %1% bytes consumed") %
+ "Buffer underflow: %1% bytes used, %2% bytes consumed") %
unconsumed_space % consume_size)
.str());
};