[Forensics-changes] [yara] 52/407: Fix warning due to a wrong format specifier for printf

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit 5ade2bf9682d467ae019463072873215f93f6d67
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date:   Tue Sep 23 18:40:48 2014 +0200

    Fix warning due to a wrong format specifier for printf
---
 libyara/object.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libyara/object.c b/libyara/object.c
index dd4f9c8..49bc25c 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -20,6 +20,7 @@ limitations under the License.
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <inttypes.h>
 
 
 #include <yara/mem.h>
@@ -917,7 +918,7 @@ void yr_object_print_data(
     case OBJECT_TYPE_INTEGER:
       if (((YR_OBJECT_INTEGER*) object)->value != UNDEFINED)
         printf(
-            "%s%s = %lld\n",
+            "%s%s = %" PRIu64 "\n",
             indent_spaces,
             object->identifier,
             ((YR_OBJECT_INTEGER*) object)->value);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list