Skip to content

Commit

Permalink
Fix creating screenshots directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet authored and Paril committed Dec 10, 2021
1 parent 65cb0a8 commit 99e8aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/images.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ static int create_screenshot(char *buffer, size_t size, FILE **f,
char temp[MAX_OSPATH];
int i, ret;

if (Q_snprintf(temp, sizeof(temp), "%s/screenshots", fs_gamedir) >= sizeof(temp)) {
if (Q_snprintf(temp, sizeof(temp), "%s/screenshots/", fs_gamedir) >= sizeof(temp)) {
return -ENAMETOOLONG;
}
if ((ret = FS_CreatePath(temp)) < 0) {
Expand Down

0 comments on commit 99e8aad

Please sign in to comment.