diff options
-rw-r--r-- | stegmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ static int stegmp(const char *bmp_file, FILE *input) fstat(fileno(fh), &stat); addr = mmap(NULL, stat.st_size, PROT_READ | ((input) ? PROT_WRITE : 0), - MAP_PRIVATE, fileno(fh), 0); + MAP_SHARED, fileno(fh), 0); if (addr == MAP_FAILED) { fprintf(stderr, "%s: %m\n", bmp_file); |