--- fig2dev/trans_spline.c.str 2009-04-11 21:18:00.000000000 +0200 +++ fig2dev/trans_spline.c 2009-04-11 21:18:19.000000000 +0200 @@ -648,7 +648,7 @@ F_control *cp; if ((cp = (F_control *) malloc(CONTROL_SIZE)) == NULL) - fprintf(stderr,Err_mem); + fprintf(stderr,"%s",Err_mem); return cp; } @@ -659,7 +659,7 @@ F_line *l; if ((l = (F_line *) malloc(LINOBJ_SIZE)) == NULL) - fprintf(stderr,Err_mem); + fprintf(stderr,"%s",Err_mem); l->pic = NULL; l->next = NULL; l->for_arrow = NULL; --- fig2dev/dev/gencgm.c.str 2009-04-11 21:21:47.000000000 +0200 +++ fig2dev/dev/gencgm.c 2009-04-11 21:22:01.000000000 +0200 @@ -139,7 +139,7 @@ if (from) { figname = malloc(strlen(from)+1); - sprintf(figname, from); + sprintf(figname, "%s", from); p = strrchr(figname, '/'); if (p) figname = p+1; /* remove path from name for comment in file */ --- fig2dev/dev/genmp.c.str 2009-04-11 21:24:55.000000000 +0200 +++ fig2dev/dev/genmp.c 2009-04-11 21:25:14.000000000 +0200 @@ -1147,7 +1147,7 @@ } } else { /* special text in latex mode: just write the text. */ - fprintf(tfp, t->cstring); + fprintf(tfp, "%s", t->cstring); } fprintf(tfp," etex;\n"); @@ -1161,7 +1161,7 @@ fprintf(tfp," picture q;\n"); fprintf(tfp," q=thelabel.urt(\""); - fprintf(tfp, t->cstring); + fprintf(tfp, "%s", t->cstring); fprintf(tfp, "\" infont "); if (t->font<0) { fprintf(tfp, "defaultfont");