Skip to content

Commit 38db362

Browse files
committed
Fix buffer creation
Fixes #193.
1 parent 68c260e commit 38db362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ namespace appimage::update::util {
291291

292292
std::vector<char> makeBuffer(const std::string& str) {
293293
std::vector<char> buffer;
294-
buffer.reserve(str.size() + 1);
294+
buffer.resize(str.size());
295295
std::copy(str.begin(), str.end(), buffer.begin());
296296
buffer.emplace_back('\0');
297297
return buffer;

0 commit comments

Comments
 (0)