Commit e7bbe366 authored by Rusty Russell's avatar Rusty Russell

Fix for 64-bit (thanks to Tim T)

parent c8091045
......@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
if (!read_all(p2c[0], buffer+1, sizeof(buffer)-1))
exit(3);
if (memchr(buffer, 0, sizeof(buffer))) {
fprintf(stderr, "buffer has 0 at offset %i\n",
fprintf(stderr, "buffer has 0 at offset %ti\n",
memchr(buffer, 0, sizeof(buffer)) - (void *)buffer);
exit(4);
}
......
Markdown is supported
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