Add type casts to make YAZ C++ compile
[yaz-moved-to-github.git] / src / xmalloc.c
index 7042079..d4e2300 100644 (file)
@@ -348,7 +348,7 @@ char *xstrndup_f(const char *s, size_t n, const char *file, int line)
     if (l < n)
         return xstrdup_f(s, file, line);
     {
-        char *a = xmalloc_f(n+1, file, line);
+        char *a = (char*) xmalloc_f(n+1, file, line);
         memcpy(a, s, n);
         a[n] = '\0';
         return a;