Fixed build failure with -Werror=format-security (bug #1037358).

Resolves: rhbz#1037358
This commit is contained in:
Tim Waugh 2013-12-03 16:48:23 +00:00
parent 8dd1ebcac3
commit 475c2dd0e7
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up tigervnc-1.3.0/vncviewer/vncviewer.cxx.format-security tigervnc-1.3.0/vncviewer/vncviewer.cxx
--- tigervnc-1.3.0/vncviewer/vncviewer.cxx.format-security 2013-12-03 16:47:04.802800182 +0000
+++ tigervnc-1.3.0/vncviewer/vncviewer.cxx 2013-12-03 16:47:08.680820024 +0000
@@ -309,7 +309,7 @@ interpretViaParam(char *remoteHost, int
snprintf(vncServerName, VNCSERVERNAMELEN, "localhost::%d", localPort);
vncServerName[VNCSERVERNAMELEN - 1] = '\0';
- vlog.error(vncServerName);
+ vlog.error("%s", vncServerName);
return 0;
}

View File

@ -1,6 +1,6 @@
Name: tigervnc
Version: 1.3.0
Release: 8%{?dist}
Release: 9%{?dist}
Summary: A TigerVNC remote display system
Group: User Interface/Desktops
@ -47,6 +47,7 @@ Patch7: tigervnc-manpages.patch
Patch8: tigervnc-getmaster.patch
Patch9: tigervnc-shebang.patch
Patch10: tigervnc-1.3.0-xserver-1.15.patch
Patch11: tigervnc-format-security.patch
%description
Virtual Network Computing (VNC) is a remote display system which
@ -171,6 +172,9 @@ popd
%patch10 -p1 -b .115
# Fixed build failure with -Werror=format-security (bug #1037358).
%patch11 -p1 -b .format-security
%build
%ifarch sparcv9 sparc64 s390 s390x
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
@ -343,6 +347,9 @@ fi
%{_datadir}/icons/hicolor/*/apps/*
%changelog
* Tue Dec 3 2013 Tim Waugh <twaugh@redhat.com> 1.3.0-9
- Fixed build failure with -Werror=format-security (bug #1037358).
* Thu Nov 07 2013 Adam Jackson <ajax@redhat.com> 1.3.0-8
- Rebuild against xserver 1.15RC1