[PATCH] t1lib version detection
Peter FELECAN <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Organization | N/A |
| Message-ID | <[email protected]> |
Here is a patch correcting the detection of t1lib version when configuring tetex 3.0 --with-system-t1lib. On Solaris 8 SPARC with gcc 3.4.3 and t1lib 1.3.1 installed, the value of testbuf is "1314..." The parsing of the value returned by T1_GetLibIdent() doesn't nil terminate testbuf. -- Peter FELECAN
t1lib.patch
(text/x-patch, 493 B)
diff --recursive --context=2 --unidirectional-new-file --exclude=CVS tetex-src-3.0-reference/libs/t1lib/t1lib.ac tetex-src-3.0-modified/libs/t1lib/t1lib.ac
*** tetex-src-3.0-reference/libs/t1lib/t1lib.ac 2005-01-23 22:32:44.000000000 +0100
--- tetex-src-3.0-modified/libs/t1lib/t1lib.ac 2005-03-08 10:57:43.431678000 +0100
***************
*** 54,57 ****
--- 54,58 ----
break;
}
+ *p = '\0';
version_num = strtoul(testbuf, (char **)NULL, 10);
/* xdvik needs >= 5.0.0.