mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 09:31:12 +00:00
get some single source instruction formats right and handle empty paths
properly
This commit is contained in:
parent
ada828bdc9
commit
cbc6c40d33
2 changed files with 12 additions and 1 deletions
|
@ -148,7 +148,7 @@ PR_Load_Source_File (progs_t *pr, const char *fname)
|
|||
int len;
|
||||
len = strlen (*dir) + strlen (fname) + 2;
|
||||
path = Hunk_TempAlloc (len);
|
||||
sprintf (path, "%s/%s", *dir, fname);
|
||||
sprintf (path, "%s%s%s", *dir, **dir ? "/" : "", fname);
|
||||
f->text = pr->load_file (pr, path);
|
||||
}
|
||||
if (!f->text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue