Skip to content

Commit

Permalink
thanm: change unique filename separator from # to @
Browse files Browse the repository at this point in the history
because at some point we might need to use this stuff on the wiki
  • Loading branch information
DankRank committed Aug 28, 2023
1 parent 8fb5a72 commit 0ebe34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thanm/thanm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,13 +1268,13 @@ anm_make_unique_filename(
p = anmname + strlen(anmname);
anmnamepfx = p - anmname;

n = snprintf(0, 0, "%.*s#%.*s#%d%s", namepfx, name, anmnamepfx, anmname, num, name+namepfx);
n = snprintf(0, 0, "%.*s@%.*s@%d%s", namepfx, name, anmnamepfx, anmname, num, name+namepfx);
if (n == -1)
abort();
rv = malloc(n+1);
if (!rv)
abort();
snprintf(rv, n+1, "%.*s#%.*s#%d%s", namepfx, name, anmnamepfx, anmname, num, name+namepfx);
snprintf(rv, n+1, "%.*s@%.*s@%d%s", namepfx, name, anmnamepfx, anmname, num, name+namepfx);
return rv;
}

Expand Down

0 comments on commit 0ebe34d

Please sign in to comment.