Age | Commit message (Collapse) | Author |
|
when using MAP_PRIVATE with mmap(), the content is not updated in the
filesystem. Only the mapping is changed.
fixed by replacing MAP_PRIVATE by MAP_SHARED
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
it is somehow insecure and useless to map the pages of the bitmap as
writable if we only want to read data from it.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
stegmp() now receives a file handler as second argument.
if this one is non-null, then it is the file from which we need to read
the input and write it back to the bitmap.
if it is null, then we need to read from the bitmap and display back the
data on the standard output
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we retrieve valuable information such as the data offset, the width and
the height of the picture which path is passed as parameter.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|