fix ttmkfdir-3.0.9-segfaults.patch to include stdio.h for added printf

This commit is contained in:
Caolan McNamara 2009-03-03 14:27:23 +00:00
parent 64a799798d
commit fe5c7ac2fd
3 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
--- ttmkfdir-3.0.9/directory.cpp.bak 2008-02-27 10:18:52.000000000 +0800
+++ ttmkfdir-3.0.9/directory.cpp 2008-02-27 10:20:24.000000000 +0800
@@ -2,6 +2,8 @@
#include <dirent.h>
@@ -3,6 +3,8 @@
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <string.h>

View File

@ -1,6 +1,13 @@
--- ttmkfdir-3.0.9/directory.cpp.back 2005-10-08 14:25:37.839328408 +0800
+++ ttmkfdir-3.0.9/directory.cpp 2005-10-08 14:26:00.021956136 +0800
@@ -13,6 +13,10 @@
@@ -1,5 +1,6 @@
#include <cctype>
#include <dirent.h>
+#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -13,6 +14,10 @@
directory::scan (const std::string &dir)
{
DIR *ttfdir = opendir(dir.c_str ());

View File

@ -1,7 +1,7 @@
Summary: Utility to create fonts.scale files for truetype fonts
Name: ttmkfdir
Version: 3.0.9
Release: 29%{?dist}
Release: 30%{?dist}
# This is a Red Hat maintained package which is specific to
# our distribution. Thus the source is only available from
# within this srpm.
@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/ttmkfdir
%changelog
* Tue Mar 03 2009 Caolán McNamara <caolanm@redhat.com> - 3.0.9-30
- fix ttmkfdir-3.0.9-segfaults.patch to include stdio.h for added printf
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.9-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild