aboutsummaryrefslogtreecommitdiff
path: root/mail/vmailmgr/files/patch-lib_vpwtable_gdbm__exists.cc
blob: 9d6ad551a1ce284ee3b17af6ad4f59269ac99c9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/vpwtable/gdbm_exists.cc.orig	2002-11-20 15:54:44 UTC
+++ lib/vpwtable/gdbm_exists.cc
@@ -23,7 +23,7 @@ bool vpwtable::exists(const mystring& name) const
   GDBM_FILE db = gdbm_open((char*)filename.c_str(), 0, GDBM_READER, 0, 0);
   if(!db)
     return false;
-  datum key = { (char*)name.c_str(), name.length() };
+  datum key = { (char*)name.c_str(), static_cast<int>(name.length()) };
   bool result = gdbm_exists(db, key);
   gdbm_close(db);
   return result;