make more ansi-ish

This commit is contained in:
Ron Pedde 2006-02-27 22:54:40 +00:00
parent 940cfed25e
commit 096a2a4dbc

View File

@ -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");