Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Apr 16, 2024
1 parent 0487f44 commit 905fb49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mos-platform/commodore/translate-filename.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include <stdio.h>

static char buf[36];
static char* bptr;

extern "C" const char *_translate_filename(const char *filename) {
char *bptr = buf;
bptr = buf;
for (const char *s = filename; *s; ++s)
__from_ascii(*s, [&bptr](char c) { *bptr++ = c; });
__from_ascii(*s, [](char c) { *bptr++ = c; });
*bptr = '\0';
return buf;
}

0 comments on commit 905fb49

Please sign in to comment.