pfa_file = afm_file = dvienc_file = null_file;
if(wantafm || genlast == &gen_afm) { /* print .afm instead of .pfa */
pfa_file = afm_file = dvienc_file = null_file;
if(wantafm || genlast == &gen_afm) { /* print .afm instead of .pfa */
snprintf(filename, sizeof filename, "%s.%s", argv[2], encode ? (pfbflag ? "pfb" : "pfa") : "t1a" );
snprintf(filename, sizeof filename, "%s.%s", argv[2], encode ? (pfbflag ? "pfb" : "pfa") : "t1a" );
snprintf(filename, sizeof filename, "%s.t1a", argv[2]);
snprintf(filename, sizeof filename, "%s.t1a", argv[2]);
if (encode && pfa_file != null_file) {
int p[2];
extern FILE *ifp, *ofp; /* from t1asm.c */
if (encode && pfa_file != null_file) {
int p[2];
extern FILE *ifp, *ofp; /* from t1asm.c */
snprintf(filename, sizeof filename, "%s.%s", argv[2], pfbflag ? "pfb" : "pfa" );
snprintf(filename, sizeof filename, "%s.%s", argv[2], pfbflag ? "pfb" : "pfa" );
- if ((ofp = fopen(filename, "w+b")) == NULL) {
- fprintf(stderr, "**** Cannot create %s ****\n", filename);
+ if ((ofp = fopen(filename, "wb+")) == NULL) {
snprintf(filename, sizeof filename, "%s.t1a", argv[2]);
if ((ifp = fopen(filename, "rb")) == NULL) {
snprintf(filename, sizeof filename, "%s.t1a", argv[2]);
if ((ifp = fopen(filename, "rb")) == NULL) {