Files
macports-ports/devel/ldid/files/patch-nullbuf.diff
KetoandZhenfu Shi 6292832132 ldid: Use CMake build system instead
sbingner's fork has a CMake build system, so let's
use it. Let's also make the Portfile more modern,
using the correct PortGroups to configure the
environment before building.

Finally, ldid should conflict with ldid-procursus,
since the latter installs a conflicting ldid binary.
2023-09-16 00:00:36 -04:00

15 lines
489 B
Diff

diff --git a/ldid.cpp b/ldid.cpp
index 3411e59..0d4cb73 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -2503,8 +2503,7 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu
void DiskFolder::Save(const std::string &path, bool edit, const void *flag, const Functor<void (std::streambuf &)> &code) {
if (!edit) {
- // XXX: use nullbuf
- std::stringbuf save;
+ NullBuffer save;
code(save);
} else {
std::filebuf save;