git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1430c82
)
added fix for segfault.
author
kramm
<kramm>
Tue, 21 Sep 2004 13:03:45 +0000
(13:03 +0000)
committer
kramm
<kramm>
Tue, 21 Sep 2004 13:03:45 +0000
(13:03 +0000)
pdf2swf/xpdf/FoFiType1C.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/xpdf/FoFiType1C.cc
b/pdf2swf/xpdf/FoFiType1C.cc
index
91a21ad
..
a1cec31
100644
(file)
--- a/
pdf2swf/xpdf/FoFiType1C.cc
+++ b/
pdf2swf/xpdf/FoFiType1C.cc
@@
-231,8
+231,11
@@
void FoFiType1C::convertToType1(char **newEncoding, GBool ascii,
(*outputFunc)(outputStream,
"0 1 255 {1 index exch /.notdef put} for\n", 40);
enc = newEncoding ? newEncoding : encoding;
+ if(!enc) {
+ fprintf(stderr, "convertToType1: Warning: No Encoding\n");
+ }
for (i = 0; i < 256; ++i) {
- if (enc[i]) {
+ if (enc && enc[i]) {
sprintf(buf, "dup %d /%s put\n", i, enc[i]);
(*outputFunc)(outputStream, buf, strlen(buf));
}