[packages/noip] - added missing patch

baggins baggins at pld-linux.org
Sun Jul 21 12:14:08 CEST 2013


commit 13f54e258ff059a8793ab215b1db3b8b1ebc2cc1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jul 21 12:14:00 2013 +0200

    - added missing patch

 format-security.patch | 20 ++++++++++++++++++++
 noip.spec             |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/noip.spec b/noip.spec
index d64e5df..38dc352 100644
--- a/noip.spec
+++ b/noip.spec
@@ -44,8 +44,8 @@ po ich dodaniu na stronie <http://www.noip.com>.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%{__mv} %{name}2.c %{name}.c
 %patch2 -p1
+%{__mv} %{name}2.c %{name}.c
 
 %build
 %{__make} \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..8067a9e
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,20 @@
+--- noip-2.1.9/noip2.c~	2013-07-21 12:12:24.198506916 +0200
++++ noip-2.1.9/noip2.c	2013-07-21 12:13:03.495541538 +0200
+@@ -1005,7 +1005,7 @@
+ 	my_instance->debug = debug;
+ 	my_instance->interval = interval;
+ 	my_instance->version = put_version(VERSION);
+-	sprintf(my_instance->Last_IP_Addr, new_config->lastIP);
++	sprintf(my_instance->Last_IP_Addr, "%s", new_config->lastIP);
+ 	sprintf(my_instance->args, "%s", saved_args);
+ 	sprintf(my_instance->cfilename, "%s", config_filename);
+ 	return SUCCESS;
+@@ -1959,7 +1959,7 @@
+         vsnprintf(msg, LINELEN-1, fmt, ap);
+         va_end(ap);
+ 
+-	fprintf(stderr, msg);
++	fprintf(stderr, "%s", msg);
+         tcgetattr(0,&argin);
+         argout = argin;                                                        
+         argout.c_lflag &= ~(ICANON);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/noip.git/commitdiff/13f54e258ff059a8793ab215b1db3b8b1ebc2cc1



More information about the pld-cvs-commit mailing list