Make the array be long enough, otherwise strncpy() on some platforms
will clobber it (e.g., FC4 which will pad the end of the string with \0's). This commit was SVN r8656.
Этот коммит содержится в:
родитель
d2897b54d7
Коммит
607b6d5940
@ -637,7 +637,7 @@ int opal_ifindextoname(int if_index, char* if_name, int length)
|
||||
bool
|
||||
opal_ifislocal(char *hostname)
|
||||
{
|
||||
char addrname[ADDRLEN - 1];
|
||||
char addrname[ADDRLEN + 1];
|
||||
int ret;
|
||||
struct hostent *h;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user