1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 21:15:08 +00:00
serenity/Ports/emu2/patches/dosnames.patch
2021-12-24 17:02:40 +03:30

18 lines
493 B
Diff

+++ emu2-master/src/dosnames.c 2021-04-14 07:15:44.036839086 -0700
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <sys/stat.h>
// DOS directory entries.
@@ -589,7 +590,7 @@
static struct dos_file_list *find_first_file(char *fspec)
{
// Now, separate the path to the spec
- char *glob, *unixpath, *p = rindex(fspec, '/');
+ char *glob, *unixpath, *p = strrchr(fspec, '/');
if(!p)
{
glob = fspec;