From: Adam Dickmeiss Date: Mon, 10 Aug 2009 08:01:28 +0000 (+0000) Subject: Add cast to int in yaz_log call (%.*s) X-Git-Tag: CPAN.1.12~5 X-Git-Url: http://git.indexdata.com/?p=simpleserver-moved-to-github.git;a=commitdiff_plain;h=6f12bc52a309590239fb7c203fd730fa21648e0a Add cast to int in yaz_log call (%.*s) The len parameter is defined as STRLEN which seems to be size_t on most systems. For amd64 architectures and others this may be different from int. --- diff --git a/SimpleServer.xs b/SimpleServer.xs index b838b29..ab9b336 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.83 2008-09-02 15:16:34 mike Exp $ + * $Id: SimpleServer.xs,v 1.84 2009-08-10 08:01:28 adam Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -1756,7 +1756,7 @@ yazlog(arg) STRLEN len; char *ptr; ptr = SvPV(arg, len); - yaz_log(YLOG_LOG, "%.*s", len, ptr); + yaz_log(YLOG_LOG, "%.*s", (int) len, ptr); int yaz_diag_srw_to_bib1(srw_code)