Skip to content

Commit 3083f0c

Browse files
committed
REVIEWED: SaveFileText(), const input text
1 parent 693c9c2 commit 3083f0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/raylib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ RLAPI bool SaveFileData(const char *fileName, void *data, int dataSize); // Save
11231123
RLAPI bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName); // Export data to code (.h), returns true on success
11241124
RLAPI char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string
11251125
RLAPI void UnloadFileText(char *text); // Unload file text data allocated by LoadFileText()
1126-
RLAPI bool SaveFileText(const char *fileName, char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success
1126+
RLAPI bool SaveFileText(const char *fileName, const char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success
11271127
//------------------------------------------------------------------
11281128

11291129
// File system functions

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void UnloadFileText(char *text)
405405
}
406406

407407
// Save text data to file (write), string must be '\0' terminated
408-
bool SaveFileText(const char *fileName, char *text)
408+
bool SaveFileText(const char *fileName, const char *text)
409409
{
410410
bool success = false;
411411

0 commit comments

Comments
 (0)