blob: b5ff2ee307690f359396e80a7ac49ed51f033f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- tools/tiff2pdf.c.orig 2006-06-04 18:26:40.000000000 -0700
+++ tools/tiff2pdf.c 2006-06-04 18:27:22.000000000 -0700
@@ -3668,7 +3668,7 @@
written += TIFFWriteFile(output, (tdata_t) "(", 1);
for (i=0;i<len;i++){
if((pdfstr[i]&0x80) || (pdfstr[i]==127) || (pdfstr[i]<32)){
- sprintf(buffer, "\\%.3o", pdfstr[i]);
+ snprintf(buffer, "\\%.3o", pdfstr[i]);
written += TIFFWriteFile(output, (tdata_t) buffer, 4);
} else {
switch (pdfstr[i]){
|