Cast to avoid warning.
authorLinus Nordberg <linus@nordu.net>
Tue, 27 Sep 2011 17:43:59 +0000 (19:43 +0200)
committerLinus Nordberg <linus@nordu.net>
Tue, 27 Sep 2011 17:43:59 +0000 (19:43 +0200)
fticks.c

index 8d41c4f..ee83b91 100644 (file)
--- a/fticks.c
+++ b/fticks.c
@@ -145,7 +145,7 @@ fticks_hashmac(const uint8_t *in,
     uint8_t *p = NULL;
     int i;
 
-    in_copy = calloc(1, strlen(in) + 1);
+    in_copy = calloc(1, strlen((const char *) in) + 1);
     if (in_copy == NULL)
        return -ENOMEM;