From ca8f5b9fefb1f75b8b2960fb7b73525fa3630b7e Mon Sep 17 00:00:00 2001 From: Larry Kollar Date: Mon, 2 Feb 2015 11:39:06 +0330 Subject: [PATCH] out: handle old eps files This patch allows EPS files with header "%!PS-Adobe-2.0 EPSF-1.2". --- out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/out.c b/out.c index c08a955..7824f60 100644 --- a/out.c +++ b/out.c @@ -265,7 +265,8 @@ void outeps(char *spec) if (!(filp = fopen(eps, "r"))) return; if (!fgets(buf, sizeof(buf), filp) || - (strcmp(buf, "%!PS-Adobe-2.0 EPSF-2.0\n") && + (strcmp(buf, "%!PS-Adobe-2.0 EPSF-1.2\n") && + strcmp(buf, "%!PS-Adobe-2.0 EPSF-2.0\n") && strcmp(buf, "%!PS-Adobe-3.0 EPSF-3.0\n"))) { fclose(filp); return; -- 2.11.4.GIT