summaryrefslogtreecommitdiff
path: root/amiga/os3support.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-30 19:37:38 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-30 19:37:38 +0000
commit7a72ff3161c8cfe31cf3217304223593a277a647 (patch)
tree8f78c55c392c0b4f98c1d88eeb387ffea0f124c3 /amiga/os3support.c
parent8373fe14cbf21148ccaf1fabe1a43e90a2def566 (diff)
downloadnetsurf-7a72ff3161c8cfe31cf3217304223593a277a647.tar.gz
netsurf-7a72ff3161c8cfe31cf3217304223593a277a647.tar.bz2
Fixup font scanning some more, remove .font suffix
Diffstat (limited to 'amiga/os3support.c')
-rw-r--r--amiga/os3support.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/amiga/os3support.c b/amiga/os3support.c
index 992fbe007..34117937d 100644
--- a/amiga/os3support.c
+++ b/amiga/os3support.c
@@ -53,14 +53,16 @@ struct OutlineFont *OpenOutlineFont(STRPTR fileName, struct List *list, ULONG fl
struct BulletBase *BulletBase;
struct OutlineFont *of = NULL;
struct GlyphEngine *gengine;
- char *p;
+ char *p = 0;
if(p = strrchr(fileName, '.'))
*p = '\0';
otagpath = (STRPTR)ASPrintf("FONTS:%s.otag", fileName);
fh = Open(otagpath, MODE_OLDFILE);
-
+
+ if(p) *p = '.';
+
if(fh == 0) {
/*\todo we should be opening the .font file too and checking
* for the magic bytes to indicate this is an outline font.