mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
make more ansi-ish
This commit is contained in:
@@ -1443,10 +1443,11 @@ void dispatch_server_info(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
|||||||
int apro = 3 << 16;
|
int apro = 3 << 16;
|
||||||
char servername[80];
|
char servername[80];
|
||||||
int size;
|
int size;
|
||||||
|
int actual_length;
|
||||||
|
|
||||||
conf_get_string("general","servername","mt-daapd",servername,&size);
|
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)) {
|
if(actual_length > sizeof(server_info)) {
|
||||||
DPRINTF(E_FATAL,L_DAAP,"Server name too long.\n");
|
DPRINTF(E_FATAL,L_DAAP,"Server name too long.\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user