23 lines
682 B
Plaintext
23 lines
682 B
Plaintext
$OpenBSD: patch-encoding_cpp,v 1.2 2004/11/06 16:15:08 naddy Exp $
|
|
--- encoding.cpp.orig Thu Nov 7 06:28:44 2002
|
|
+++ encoding.cpp Sat Nov 6 16:49:09 2004
|
|
@@ -2,7 +2,8 @@
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
-#include "freetype/freetype.h"
|
|
+#include <ft2build.h>
|
|
+#include FT_FREETYPE_H
|
|
|
|
#include "ttmkfdir.h"
|
|
#include "encoding.h"
|
|
@@ -44,7 +45,7 @@ namespace {
|
|
|
|
strcat (name, file_name);
|
|
|
|
- sprintf (command, "exec %s < %s", (toupper(name[strlen (name) - 1]) == 'Z')
|
|
+ snprintf (command, sizeof(command), "exec %s < %s", (toupper(name[strlen (name) - 1]) == 'Z')
|
|
? "gzip -d" : "cat", name);
|
|
return popen (command, "r");
|
|
}
|