File libdmtx-explicit-cast.patch of Package libdmtx

From a3e539a3e1c1076c7b96ad306f0883f9b363eb60 Mon Sep 17 00:00:00 2001
From: Mike Laughton <mike@dragonflylogic.com>
Date: Sun, 21 Aug 2011 22:48:33 -0500
Subject: [PATCH] Added explicit cast for strlen

---
 test/simple_test/simple_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/simple_test/simple_test.c b/test/simple_test/simple_test.c
index 294701e..fa50968 100644
--- a/test/simple_test/simple_test.c
+++ b/test/simple_test/simple_test.c
@@ -34,7 +34,7 @@ main(int argc, char *argv[])
 
    enc = dmtxEncodeCreate();
    assert(enc != NULL);
-   dmtxEncodeDataMatrix(enc, strlen(str), str);
+   dmtxEncodeDataMatrix(enc, strlen((const char *)str), str);
 
    /* 2) COPY the new image data before releasing encoding memory */
 
openSUSE Build Service is sponsored by