diff common/binverify.c @ 591:26a18e3c3db4

Cleanups and coding style.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 28 May 2014 07:56:21 +0000
parents c93730ef2a3a
children facb13c578f1
line wrap: on
line diff
--- a/common/binverify.c	Wed May 28 07:55:35 2014 +0000
+++ b/common/binverify.c	Wed May 28 07:56:21 2014 +0000
@@ -50,7 +50,7 @@
       return VerifyUnknownError;
     }
 
-  filenameW = utf8_to_wchar(filename, strnlen(filename, MAX_PATH));
+  filenameW = utf8_to_wchar(filename, name_len);
 
   result = CryptQueryObject (CERT_QUERY_OBJECT_FILE,
                              filenameW,

http://wald.intevation.org/projects/trustbridge/