1
--- a/filter/pdfutils.c
2
+++ b/filter/pdfutils.c
7
- // escape special chars: \0 \\ \)
8
+ // escape special chars: \0 \\ \( \) -- don't bother about balanced parens
10
for (;len>0;iA++,len--) {
11
if ( (str[iA]<32)||(str[iA]>126) ) {
16
- } else if ( (str[iA]==')')||(str[iA]=='\\') ) {
17
+ } else if ( (str[iA]=='(')||(str[iA]==')')||(str[iA]=='\\') ) {
18
fwrite(str,1,iA,stdout);
19
fprintf(stdout,"\\%c",str[iA]);
22
pdfOut *pdf=(pdfOut *)context;
24
if (fwrite(buf,1,len,stdout)!=len) {
25
- fprintf(stderr,"Short write: %m\n");
26
+ perror("Short write");