mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 01:03:44 -04:00
make more ansi-ish
This commit is contained in:
parent
940cfed25e
commit
096a2a4dbc
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user