Skip to content

Commit

Permalink
dpmi: shorten shmname for ldt_alias
Browse files Browse the repository at this point in the history
On Mac, PSHMNAMLEN is only 31, so change the shmname from something
like /dosemu_dpmishm_16495_ldt_alias_16495FPd to
/dosemu_ldt_alias_16495FPd which is still sufficiently unique.
  • Loading branch information
bartoldeman committed Jul 7, 2023
1 parent 0622ba2 commit 3529a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dosext/dpmi/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ dpmi_pm_block *DPMI_mallocShared(dpmi_pm_block_root *root,
return NULL;
}

asprintf(&shmname, "/dosemu_dpmishm_%d_%s", getpid(), name);
asprintf(&shmname, "/dosemu_%s", name);
if (init) {
oflags |= O_CREAT;
if (flags & SHM_EXCL)
Expand Down

0 comments on commit 3529a0c

Please sign in to comment.