From 096a2a4dbceb1b35683d4b20d0da50e3a5076ae8 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 27 Feb 2006 22:54:40 +0000 Subject: [PATCH] make more ansi-ish --- src/dispatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatch.c b/src/dispatch.c index 1a68ecaf..e411c1e3 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -1443,10 +1443,11 @@ void dispatch_server_info(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) { int apro = 3 << 16; char servername[80]; int size; + int actual_length; conf_get_string("general","servername","mt-daapd",servername,&size); - int actual_length=130 + (int) strlen(servername); + actual_length=130 + (int) strlen(servername); if(actual_length > sizeof(server_info)) { DPRINTF(E_FATAL,L_DAAP,"Server name too long.\n");