mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 06:05:56 -05: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;
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user