X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fxmalloc.c;h=179b1437da3db927cf5a21a175919f7dbe72b77e;hb=3e6398d15008d68aa36b0b985a18f142fcfa9a8f;hp=704207982c52f832e7607adba3b85c0dbfe8d8ac;hpb=29b3b3213c4c8ad38bab054b56f8b70f1b14d67a;p=yaz-moved-to-github.git diff --git a/src/xmalloc.c b/src/xmalloc.c index 7042079..179b143 100644 --- a/src/xmalloc.c +++ b/src/xmalloc.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ /** @@ -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;