forked from pool/fillup
21 lines
587 B
Diff
21 lines
587 B
Diff
|
--- SRC/services.c.orig
|
||
|
+++ SRC/services.c
|
||
|
@@ -342,7 +342,7 @@ openFileForReading
|
||
|
{
|
||
|
Service_t returnValue;
|
||
|
|
||
|
- *filePointer = fopen( filename, "r" );
|
||
|
+ *filePointer = fopen( filename, "re" );
|
||
|
if( *filePointer == NULL )
|
||
|
{
|
||
|
fillup_exception( __FILE__, __LINE__, ServiceException,
|
||
|
@@ -368,7 +368,7 @@ openFileForWriting
|
||
|
{
|
||
|
Service_t returnValue;
|
||
|
|
||
|
- *filePointer = fopen( filename, "w" );
|
||
|
+ *filePointer = fopen( filename, "we" );
|
||
|
if( *filePointer == NULL )
|
||
|
{
|
||
|
fillup_exception( __FILE__, __LINE__, ServiceException,
|