From 6f12bc52a309590239fb7c203fd730fa21648e0a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 10 Aug 2009 08:01:28 +0000 Subject: [PATCH] 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. --- SimpleServer.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.4