X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fhttp.c;h=42b32ed8927a69f3ca02fdbbc77987c56c3b0c5b;hp=12e7c6637906dc3d4adec192b32913338bbed8b1;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=b8ab484f71da48a13342fff3ebd60efd23504681 diff --git a/src/http.c b/src/http.c index 12e7c66..42b32ed 100644 --- a/src/http.c +++ b/src/http.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: http.c,v 1.1 2007-01-11 10:55:57 adam Exp $ + * $Id: http.c,v 1.2 2007-05-06 20:12:20 adam Exp $ */ /** @@ -159,7 +159,8 @@ void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp, const char *l = "Content-Type"; if (charset) { - char *ctype = odr_malloc(o, strlen(content_type)+strlen(charset) + 15); + char *ctype = (char *) + odr_malloc(o, strlen(content_type)+strlen(charset) + 15); sprintf(ctype, "%s; charset=%s", content_type, charset); z_HTTP_header_add(o, hp, l, ctype); }