mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
I thought I'd tested those changes :(
This commit is contained in:
parent
a426dacc8a
commit
999912e49a
1 changed files with 3 additions and 4 deletions
|
@ -669,14 +669,14 @@ QFS_FileBase (const char *in)
|
|||
{
|
||||
const char *base;
|
||||
const char *ext;
|
||||
ptrdiff_t len;
|
||||
int len;
|
||||
char *out;
|
||||
|
||||
base = QFS_SkipPath (in);
|
||||
ext = QFS_FileExtension (base);
|
||||
len = ext - base;
|
||||
out = malloc (len + 1);
|
||||
strncpy (out, slash, len);
|
||||
strncpy (out, base, len);
|
||||
out [len] = 0;
|
||||
return out;
|
||||
}
|
||||
|
@ -1347,7 +1347,6 @@ QFS_FileExtension (const char *in)
|
|||
VISIBLE void
|
||||
QFS_DefaultExtension (dstring_t *path, const char *extension)
|
||||
{
|
||||
const char *src;
|
||||
const char *ext;
|
||||
|
||||
// if path doesn't have a .EXT, append extension
|
||||
|
@ -1363,7 +1362,7 @@ VISIBLE void
|
|||
QFS_SetExtension (struct dstring_s *path, const char *extension)
|
||||
{
|
||||
const char *ext = QFS_FileExtension (path->str);
|
||||
ptrdiff_t offs = ext - path->str;
|
||||
int offs = ext - path->str;
|
||||
|
||||
if (*ext) {
|
||||
// path has an extension... cut it off
|
||||
|
|
Loading…
Reference in a new issue