freebsd-ports/mail/vmailmgr/files/patch-lib_vpwtable_gdbm__getbyname.cc
Alexey Dokuchaev 7476b2680f - Unbreak fetching and building against contemporary compilers
- Allow to use GNU dbm for storage of virtual password tables
- Define LICENSE and install the usual set of documentation files
- Remove useless .if defined(PREFIX) check added back in r205864

Reported by:	pkg-fallout
2019-11-01 10:35:52 +00:00

11 lines
502 B
C++

--- lib/vpwtable/gdbm_getbyname.cc.orig 2002-11-20 15:54:44 UTC
+++ lib/vpwtable/gdbm_getbyname.cc
@@ -24,7 +24,7 @@ vpwentry* vpwtable::getbyname(const mystring& name) co
if(!db)
return 0;
mystring lower = name.lower();
- datum key = { (char*)lower.c_str(), lower.length() };
+ datum key = { (char*)lower.c_str(), static_cast<int>(lower.length()) };
datum result = gdbm_fetch(db, key);
gdbm_close(db);
return vpwentry::new_from_record(name, mystring(result.dptr, result.dsize));