This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SMALL error in server_test


Line 149 and 150 of server_test.c should read
	len = read(client, buf, sizeof(buf) - 1);
	buf[len] = '\0';
After all, we're using "buf" as a "C" string buffer and we need to
reserve one byte for the null.  Otherwise the last character is cut off
by line 150 setting it to null.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]