Fixed build failure with -Werror=format-security (bug #1037358).
Resolves: rhbz#1037358
This commit is contained in:
parent
8dd1ebcac3
commit
475c2dd0e7
12
tigervnc-format-security.patch
Normal file
12
tigervnc-format-security.patch
Normal 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;
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user