|
|
cd8116 |
diff -up t1lib-5.1.2/lib/t1lib/t1base.c.segf t1lib-5.1.2/lib/t1lib/t1base.c
|
|
|
cd8116 |
--- t1lib-5.1.2/lib/t1lib/t1base.c.segf 2007-12-23 16:49:42.000000000 +0100
|
|
|
cd8116 |
+++ t1lib-5.1.2/lib/t1lib/t1base.c 2008-01-12 01:43:42.000000000 +0100
|
|
|
cd8116 |
@@ -455,7 +455,7 @@ int intT1_scanFontDBase( char *filename)
|
|
|
cd8116 |
to test_for_t1_file() filename is substituted by an emty
|
|
|
cd8116 |
string if the file was not found: */
|
|
|
cd8116 |
sprintf( err_warn_msg_buf, "Type 1 Font file %s.[pfa/pfb] not found (FontID=%d, SearchPath=%s)",
|
|
|
cd8116 |
- linebuf, m-1, T1_GetFileSearchPath(T1_PFAB_PATH));
|
|
|
cd8116 |
+ linebuf, m-1, intT1_GetFileSearchPath(T1_PFAB_PATH));
|
|
|
cd8116 |
if ((test_for_t1_file( &linebuf[0]))){
|
|
|
cd8116 |
T1_PrintLog( "intT1_scanFontDBase()", err_warn_msg_buf, T1LOG_WARNING);
|
|
|
cd8116 |
located=0;
|
|
|
cd8116 |
@@ -579,7 +579,7 @@ int intT1_scanFontDBaseXLFD( char *filen
|
|
|
cd8116 |
to test_for_t1_file() filename is substituted by an emty
|
|
|
cd8116 |
string if the file was not found: */
|
|
|
cd8116 |
sprintf( err_warn_msg_buf, "Type 1 Font file %s.[pfa/pfb] not found (FontID=%d, SearchPath=%s)",
|
|
|
cd8116 |
- linebuf, m-1, T1_GetFileSearchPath(T1_PFAB_PATH));
|
|
|
cd8116 |
+ linebuf, m-1, intT1_GetFileSearchPath(T1_PFAB_PATH));
|
|
|
cd8116 |
if ((test_for_t1_file( &linebuf[0]))){
|
|
|
cd8116 |
T1_PrintLog( "intT1_scanFontDBase()", err_warn_msg_buf, T1LOG_WARNING);
|
|
|
cd8116 |
located=0;
|
|
|
cd8116 |
diff -up t1lib-5.1.2/lib/t1lib/t1env.c.segf t1lib-5.1.2/lib/t1lib/t1env.c
|
|
|
cd8116 |
--- t1lib-5.1.2/lib/t1lib/t1env.c.segf 2007-12-23 16:49:42.000000000 +0100
|
|
|
cd8116 |
+++ t1lib-5.1.2/lib/t1lib/t1env.c 2008-01-12 01:43:42.000000000 +0100
|
|
|
cd8116 |
@@ -818,6 +818,14 @@ char *T1_GetFileSearchPath( int type)
|
|
|
cd8116 |
|
|
|
cd8116 |
}
|
|
|
cd8116 |
|
|
|
cd8116 |
+/* intT1_GetFileSearchPath():
|
|
|
cd8116 |
+ call T1_GetFileSearchPath and truncate the line to avoid overflowing
|
|
|
cd8116 |
+ error buffers*/
|
|
|
cd8116 |
+char *intT1_GetFileSearchPath( int type)
|
|
|
cd8116 |
+{
|
|
|
cd8116 |
+ char *res = T1_GetFileSearchPath(type);
|
|
|
cd8116 |
+ res[900] = 0;
|
|
|
cd8116 |
+}
|
|
|
cd8116 |
|
|
|
cd8116 |
/* T1_AddToFileSearchPath(): Add the specified path element to
|
|
|
cd8116 |
the specified search path. If the existing path is the default path,
|
|
|
cd8116 |
diff -up t1lib-5.1.2/lib/t1lib/t1load.c.segf t1lib-5.1.2/lib/t1lib/t1load.c
|
|
|
cd8116 |
diff -up t1lib-5.1.2/lib/t1lib/t1env.h.segf t1lib-5.1.2/lib/t1lib/t1env.h
|
|
|
cd8116 |
--- t1lib-5.1.2/lib/t1lib/t1env.h.segf 2007-12-23 16:49:42.000000000 +0100
|
|
|
cd8116 |
+++ t1lib-5.1.2/lib/t1lib/t1env.h 2008-01-12 01:43:42.000000000 +0100
|
|
|
cd8116 |
@@ -35,6 +35,7 @@ char *intT1_Env_GetCompletePath( char *F
|
|
|
cd8116 |
int T1_SetFileSearchPath( int type, char *pathname);
|
|
|
cd8116 |
int T1_AddToFileSearchPath( int pathtype, int mode, char *pathname);
|
|
|
cd8116 |
char *T1_GetFileSearchPath( int type);
|
|
|
cd8116 |
+char *intT1_GetFileSearchPath( int type);
|
|
|
cd8116 |
int T1_SetFontDataBase( char *filename);
|
|
|
cd8116 |
int T1_AddFontDataBase( int mode, char *filename);
|
|
|
cd8116 |
int T1_SetFontDataBaseXLFD( char *filename);
|
|
|
cd8116 |
@@ -49,6 +50,7 @@ extern char *intT1_Env_GetCompletePath(
|
|
|
cd8116 |
extern int T1_SetFileSearchPath( int type, char *pathname);
|
|
|
cd8116 |
extern int T1_AddToFileSearchPath( int pathtype, int mode, char *pathname);
|
|
|
cd8116 |
extern char *T1_GetFileSearchPath( int type);
|
|
|
cd8116 |
+extern char *intT1_GetFileSearchPath( int type);
|
|
|
cd8116 |
extern int T1_SetFontDataBase( char *filename);
|
|
|
cd8116 |
extern int T1_AddFontDataBase( int mode, char *filename);
|
|
|
cd8116 |
extern int T1_SetFontDataBaseXLFD( char *filename);
|