summaryrefslogtreecommitdiff
path: root/fontforge/fontinfo.c
diff options
context:
space:
mode:
authorpfaedit <pfaedit>2010-02-12 01:00:26 +0000
committerpfaedit <pfaedit>2010-02-12 01:00:26 +0000
commit15c54c224e274ab7dcd701bf05d67d4c8ff93600 (patch)
tree24993683103e42b32524191b9a1cb762367572a3 /fontforge/fontinfo.c
parent4f415b00705c26cfb752d2dd071feff7e0c36998 (diff)
Grab many patches from the mingw build.
I did not grab the winmmap files because I'm not sure what the license is for that.
Diffstat (limited to 'fontforge/fontinfo.c')
-rw-r--r--fontforge/fontinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fontforge/fontinfo.c b/fontforge/fontinfo.c
index f4108d74..51df48e1 100644
--- a/fontforge/fontinfo.c
+++ b/fontforge/fontinfo.c
@@ -6348,6 +6348,7 @@ static void LookupExpose(GWindow pixmap, struct gfi_data *gfi, int isgpos) {
int lcnt, i,j;
struct lkdata *lk = &gfi->tables[isgpos];
GRect r, old;
+ extern GBox _ggadget_Default_Box;
r.x = LK_MARGIN; r.width = gfi->lkwidth-2*LK_MARGIN;
r.y = LK_MARGIN; r.height = gfi->lkheight-2*LK_MARGIN;
@@ -10274,7 +10275,8 @@ return;
t = sf->creationtime;
tm = localtime(&t);
- strftime(createtime,sizeof(createtime),"%c",tm);
+ if(!tm) strcpy(createtime, "error");
+ else strftime(createtime,sizeof(createtime),"%c",tm);
tmpcreatetime = def2u_copy(createtime);
dgcd[1].gd.pos.x = 115; dgcd[1].gd.pos.y = dgcd[0].gd.pos.y;
dgcd[1].gd.flags = gg_visible | gg_enabled;
@@ -10292,7 +10294,8 @@ return;
t = sf->modificationtime;
tm = localtime(&t);
- strftime(modtime,sizeof(modtime),"%c",tm);
+ if(!tm) strcpy(modtime, "error");
+ else strftime(modtime,sizeof(modtime),"%c",tm);
tmpmodtime = def2u_copy(modtime);
dgcd[3].gd.pos.x = 115; dgcd[3].gd.pos.y = dgcd[2].gd.pos.y;
dgcd[3].gd.flags = gg_visible | gg_enabled;