Skip to content

Commit 7755cd0

Browse files
committed
Tweak to minimize buffer overflow possibility
1 parent 3a9f089 commit 7755cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,7 @@ void TakeScreenshot(const char *fileName)
26642664
unsigned char *imgData = rlReadScreenPixels(CORE.Window.render.width, CORE.Window.render.height);
26652665
Image image = { imgData, CORE.Window.render.width, CORE.Window.render.height, 1, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 };
26662666

2667-
char path[512] = { 0 };
2667+
char path[2048] = { 0 };
26682668
strcpy(path, TextFormat("%s/%s", CORE.Storage.basePath, fileName));
26692669

26702670
ExportImage(image, path);

0 commit comments

Comments
 (0)