Add a cast.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@672 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -137,7 +137,7 @@ dns_find_cell(char *cell, char *dbserver)
|
|||||||
status = dn_expand(data, data + len, p, host, sizeof(host));
|
status = dn_expand(data, data + len, p, host, sizeof(host));
|
||||||
if(status < 0)
|
if(status < 0)
|
||||||
return -1;
|
return -1;
|
||||||
strncpy(dbserver, host, MaxHostNameLen);
|
strncpy(dbserver, (char*)host, MaxHostNameLen);
|
||||||
dbserver[MaxHostNameLen] = 0;
|
dbserver[MaxHostNameLen] = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user