- putenv( "T1LIB_CONFIG=/tmp/t1lib.config.tmp");
- FILE*db = fopen("/tmp/FontDataBase", "wb");
- FILE*fi = fopen("/tmp/t1lib.config.tmp", "wb");
+ char buf1[256],buf2[256],buf3[256];
+ char* t1lib_config = mktmpname(buf1);
+ char* fontdatabase = mktmpname(buf2);
+
+ sprintf(buf3, "T1LIB_CONFIG=%s", t1lib_config);
+ putenv(buf3);
+
+ FILE*db = fopen(fontdatabase, "wb");
+ FILE*fi = fopen(t1lib_config, "wb");