commit d7d4d82d0e57295e66e761ef94080c427d304157
Author: Jakub Bogusz <[email protected]>
Date:   Wed May 29 18:37:01 2024 +0200

    - added format patch (fixes build with -Werror=format-security); release 4

 dml-format.patch | 11 +++++++++++
 dml.spec         |  9 ++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/dml.spec b/dml.spec
index e36f87a..a892428 100644
--- a/dml.spec
+++ b/dml.spec
@@ -2,13 +2,14 @@ Summary:      Tool for displaying dialogs from shell
 Summary(pl.UTF-8):     Narzędzie do wyświetlania okien dialogowych z shella
 Name:          dml
 Version:       0.1.6
-Release:       3
+Release:       4
 License:       GPL v2
 Group:         Applications/Terminal
 Source0:       
ftp://ftp.pld-linux.org/people/malekith/dml/%{name}-%{version}.tar.gz
 # Source0-md5: 1862186f09b0c82fd69c50364fbbd638
 Patch0:                %{name}-utf8.patch
 Patch1:                %{name}-input_utf8.patch
+Patch2:                %{name}-format.patch
 BuildRequires: slang-devel >= 2.0.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,6 +23,7 @@ Narzędzie do wyświetlania okien dialogowych z shella.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} \
@@ -31,6 +33,7 @@ Narzędzie do wyświetlania okien dialogowych z shella.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
        PREFIX=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
@@ -41,5 +44,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS TODO NEWS README doc/dml.pl doc/dml.sh
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/dml
+%{_mandir}/man1/dml.1*
diff --git a/dml-format.patch b/dml-format.patch
new file mode 100644
index 0000000..06a6005
--- /dev/null
+++ b/dml-format.patch
@@ -0,0 +1,11 @@
+--- dml-0.1.6/src/main.c.orig  2024-05-29 18:34:15.622664112 +0200
++++ dml-0.1.6/src/main.c       2024-05-29 18:35:21.065642910 +0200
+@@ -166,7 +166,7 @@ int main(int argc, char **argv)
+               for (i = 0; i < r; i++)
+                       tmp[i] = '\n';
+               tmp[i] = 0;
+-              printf(tmp);
++              fputs(tmp, stdout);
+               free(tmp);
+       }
+               
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dml.git/commitdiff/d7d4d82d0e57295e66e761ef94080c427d304157

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to