summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-13 18:02:06 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-13 18:02:06 +0200
commit335e82b97463eb3c25e1a69dd7522c1875c09c5d (patch)
treec925673762f119a2717cf705f3348f69f225ca06 /src
parent961e8806b380a7e8c5bad8a54a495aa9d1f62a88 (diff)
use ftell() instead of ftello() for compatibility
(noticed by Christophe Curis)
Diffstat (limited to 'src')
-rw-r--r--src/PostscriptDSC.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PostscriptDSC.cxx b/src/PostscriptDSC.cxx
index 41ca466..aa23430 100644
--- a/src/PostscriptDSC.cxx
+++ b/src/PostscriptDSC.cxx
@@ -91,13 +91,13 @@ PostscriptDSC::parse(int fd) {
bb_h = h;
bb_read++;
} else if (strncmp(linebuf, "%%EndSetup", strlen("%%EndSetup")) == 0) {
- setup_len = ftello(fp);
+ setup_len = ftell(fp);
} else if (strncmp(linebuf, "%%Page: ", strlen("%%Page: ")) == 0) {
char *p_str = &linebuf[strlen(linebuf)];
// implicitely end setup section
if (!setup_len) {
- setup_len = ftello(fp);
+ setup_len = ftell(fp);
}
// move p_str back to beginning of last number in linebuf
@@ -132,7 +132,7 @@ PostscriptDSC::parse(int fd) {
return 1;
}
- page_off[p1 - 1] = ftello(fp);
+ page_off[p1 - 1] = ftell(fp);
if (p1 > 1) {
page_len[p1 - 2] = page_off[p1 - 1] - page_off[p1 - 2];
}
@@ -149,7 +149,7 @@ PostscriptDSC::parse(int fd) {
return 1;
}
if (page_len && page_off && p1 > 0 && p1 <= pages) {
- page_len[p1 - 1] = ftello(fp) - page_off[p1 - 1];
+ page_len[p1 - 1] = ftell(fp) - page_off[p1 - 1];
for (int i=0; i<pages; i++) {
if (page_off[i] == 0 || page_len[i] == 0) {