Commit 53895bb8 authored by pernelle's avatar pernelle
Browse files

Finish 2020.1.1

parents 85178686 840d7c34
......@@ -231,7 +231,7 @@ void lireMessageCOL3(int sock, char * msgrecu) {
if((nbrecu = recv(sock, temp, sizeof(temp), 0)) < 0) {
if (!NCURSE) printf("%s"," --> socket[lireMessageCOL3] : reception message [NOK] \n");
}
temp[nbrecu] = '\0';
temp[nbrecu<0 ? 0 : nbrecu] = '\0';
strcpy(msgrecu,temp);
if (!NCURSE) printf("%s %d %s %s %s "," --> socket[lireMessageCOL3] : reception message [OK] : nbrecu = ",nbrecu," msg = {",msgrecu,"}\n");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment