1
1

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.
Этот коммит содержится в:
Jeff Squyres 2006-01-05 18:45:36 +00:00
родитель d2897b54d7
Коммит 607b6d5940

Просмотреть файл

@ -637,7 +637,7 @@ int opal_ifindextoname(int if_index, char* if_name, int length)
bool bool
opal_ifislocal(char *hostname) opal_ifislocal(char *hostname)
{ {
char addrname[ADDRLEN - 1]; char addrname[ADDRLEN + 1];
int ret; int ret;
struct hostent *h; struct hostent *h;