diff --git a/src/apps/magnify/Magnify.cpp b/src/apps/magnify/Magnify.cpp index 3bcb76f73a..f54eccc5b1 100644 --- a/src/apps/magnify/Magnify.cpp +++ b/src/apps/magnify/Magnify.cpp @@ -494,7 +494,7 @@ TWindow::SetPrefs() long ref; path.Append (kPrefsFileName); - if ((ref = creat(path.Path(), O_RDWR)) >= 0) { + if ((ref = creat(path.Path(), S_IRUSR | S_IWUSR)) >= 0) { float version = kCurrentVersion; lseek (ref, 0, SEEK_SET); @@ -1683,7 +1683,7 @@ TMagnify::SaveImage(entry_ref* ref, char* name, bool selectionOnly) void -TMagnify::SaveBits(BFile* file, const BBitmap *bitmap, char* name) const +TMagnify::SaveBits(BFile* file, const BBitmap *bitmap, const char* name) const { int32 bytesPerPixel; const char *kColorSpaceName; diff --git a/src/apps/magnify/Magnify.h b/src/apps/magnify/Magnify.h index ae9d06d8db..c9388dd4b1 100644 --- a/src/apps/magnify/Magnify.h +++ b/src/apps/magnify/Magnify.h @@ -114,7 +114,8 @@ class TMagnify : public BView { void StartSave(); void SaveImage(entry_ref* ref, char* name, bool selectionOnly=false); - void SaveBits(BFile* file, const BBitmap *bitmap, char* name) const; + void SaveBits(BFile* file, const BBitmap *bitmap, + const char* name) const; void EndSave(); private: