--- rpl/src/instructions_o1.c 2010/08/09 13:51:47 1.19 +++ rpl/src/instructions_o1.c 2010/09/23 15:27:39 1.24 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.0.18 + RPL/2 (R) version 4.0.20 Copyright (C) 1989-2010 Dr. BERTRAND Joël This file is part of RPL/2. @@ -4185,8 +4185,8 @@ instruction_open(struct_processus *s_eta pointeur++; } - strncpy(socket_unix.sun_path, pointeur, 108); - socket_unix.sun_path[108 - 1] = d_code_fin_chaine; + strncpy(socket_unix.sun_path, pointeur, UNIX_PATH_MAX); + socket_unix.sun_path[UNIX_PATH_MAX - 1] = d_code_fin_chaine; if (options_socket() == d_erreur) { @@ -4443,11 +4443,11 @@ instruction_open(struct_processus *s_eta if ((*s_etat_processus).langue == 'F') { printf("+++Attention : Support du protocole" - " IPv6 indisponble\n"); + " IPv6 indisponible\n"); } else { - printf("+++Attention : IPv6 support " + printf("+++Warning : IPv6 support " "unavailable\n"); } # endif @@ -4613,11 +4613,11 @@ instruction_open(struct_processus *s_eta if ((*s_etat_processus).langue == 'F') { printf("+++Attention : Support du protocole" - " IPv6 indisponble\n"); + " IPv6 indisponible\n"); } else { - printf("+++Attention : IPv6 support " + printf("+++Warning : IPv6 support " "unavailable\n"); } # endif @@ -4724,8 +4724,8 @@ instruction_open(struct_processus *s_eta socket_unix.sun_family = AF_UNIX; strncpy(socket_unix.sun_path, (*((struct_socket *) - (*s_objet_resultat).objet)).adresse, 108); - socket_unix.sun_path[108 - 1] = d_code_fin_chaine; + (*s_objet_resultat).objet)).adresse, UNIX_PATH_MAX); + socket_unix.sun_path[UNIX_PATH_MAX - 1] = d_code_fin_chaine; if ((type_socket == 'S') || (type_socket == 'Q')) { @@ -4983,11 +4983,11 @@ instruction_open(struct_processus *s_eta if ((*s_etat_processus).langue == 'F') { printf("+++Attention : Support du protocole" - " IPv6 indisponble\n"); + " IPv6 indisponible\n"); } else { - printf("+++Attention : IPv6 support " + printf("+++Warning : IPv6 support " "unavailable\n"); } # endif @@ -5195,11 +5195,11 @@ instruction_open(struct_processus *s_eta if ((*s_etat_processus).langue == 'F') { printf("+++Attention : Support du protocole" - " IPv6 indisponble\n"); + " IPv6 indisponible\n"); } else { - printf("+++Attention : IPv6 support " + printf("+++Warning : IPv6 support " "unavailable\n"); } # endif