- byte_cnt = read (handle, actual_p, sizeof expected - 1);
- if (byte_cnt != sizeof expected - 1)
- printf ("(read-boundary) fail: read() returned %d instead of %d\n",
- byte_cnt, sizeof expected - 1);
- else if (strcmp (expected, actual_p))
+ byte_cnt = read (handle, actual_p, sizeof sample - 1);
+ if (byte_cnt != sizeof sample - 1)
+ printf ("(read-boundary) fail: read() returned %d instead of %zu\n",
+ byte_cnt, sizeof sample - 1);
+ else if (strcmp (sample, actual_p))