Commit 22795d22 authored by lhausamm's avatar lhausamm Committed by Matthieu Schaller
Browse files

Fix test with gcc7

parent c90ffa87
......@@ -40,7 +40,7 @@ void dump_mapper(void *map_data, int num_elements, void *extra_data) {
size_t offset;
char *out_string = dump_get(d, 7, &offset);
char out_buff[8];
snprintf(out_buff, 8, "%06zi\n", offset / 7);
snprintf(out_buff, 8, "%06zi\n", (offset / 7) % 1000000);
memcpy(out_string, out_buff, 7);
}
......
......@@ -673,6 +673,7 @@ int main(int argc, char *argv[]) {
break;
case 's':
sscanf(optarg, "%lf", &spacing);
break;
case 'n':
sscanf(optarg, "%zu", &count);
break;
......
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