r29286 - in /trunk/libpar-packer-perl/debian: changelog patches/fix-undefined-sprintf-usage patches/series
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Mon Jan 5 03:26:26 UTC 2009
Author: ryan52-guest
Date: Mon Jan 5 03:26:23 2009
New Revision: 29286
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29286
Log:
fix undefined sprintf usage
(http://lists.debian.org/debian-devel/2008/12/msg01079.html)
Added:
trunk/libpar-packer-perl/debian/patches/fix-undefined-sprintf-usage
Modified:
trunk/libpar-packer-perl/debian/changelog
trunk/libpar-packer-perl/debian/patches/series
Modified: trunk/libpar-packer-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/changelog?rev=29286&op=diff
==============================================================================
--- trunk/libpar-packer-perl/debian/changelog (original)
+++ trunk/libpar-packer-perl/debian/changelog Mon Jan 5 03:26:23 2009
@@ -1,9 +1,14 @@
libpar-packer-perl (0.982-2) UNRELEASED; urgency=low
+ [ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
(source stanza).
- -- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:45:49 +0100
+ [ Ryan Niebur ]
+ * fix undefined sprintf usage
+ (http://lists.debian.org/debian-devel/2008/12/msg01079.html)
+
+ -- Ryan Niebur <ryanryan52 at gmail.com> Sun, 04 Jan 2009 19:16:13 -0800
libpar-packer-perl (0.982-1) unstable; urgency=low
Added: trunk/libpar-packer-perl/debian/patches/fix-undefined-sprintf-usage
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/patches/fix-undefined-sprintf-usage?rev=29286&op=file
==============================================================================
--- trunk/libpar-packer-perl/debian/patches/fix-undefined-sprintf-usage (added)
+++ trunk/libpar-packer-perl/debian/patches/fix-undefined-sprintf-usage Mon Jan 5 03:26:23 2009
@@ -1,0 +1,57 @@
+Author: Ryan Niebur <ryanryan52 at gmail.com>
+http://lists.debian.org/debian-devel/2008/12/msg01079.html
+
+--- a/myldr/mktmpdir.c
++++ b/myldr/mktmpdir.c
+@@ -167,9 +167,9 @@
+ lseek(f, -58, 2);
+ read(f, buf, 41);
+ sprintf(
+- stmpdir,
+- "%s%scache-%s%s",
+- stmpdir, dir_sep, buf, subdirbuf_suffix
++ stmpdir + strlen(stmpdir),
++ "%scache-%s%s",
++ dir_sep, buf, subdirbuf_suffix
+ );
+ }
+ else {
+@@ -187,9 +187,9 @@
+ }
+ sha1[40] = '\0';
+ sprintf(
+- stmpdir,
+- "%s%scache-%s%s",
+- stmpdir, dir_sep, sha1, subdirbuf_suffix
++ stmpdir + strlen(stmpdir),
++ "%scache-%s%s",
++ dir_sep, sha1, subdirbuf_suffix
+ );
+ }
+ }
+@@ -201,9 +201,9 @@
+
+ par_setenv("PAR_CLEAN", "1");
+ sprintf(
+- stmpdir,
+- "%s%stemp-%u%s",
+- stmpdir, dir_sep, getpid(), subdirbuf_suffix
++ stmpdir + strlen(stmpdir),
++ "%stemp-%u%s",
++ dir_sep, getpid(), subdirbuf_suffix
+ );
+
+ /* Ensure we pick an unused directory each time. If the directory
+@@ -215,9 +215,9 @@
+ while (my_mkdir(stmpdir, 0755) == -1 && errno == EEXIST) {
+ stmpdir[len] = 0;
+ sprintf(
+- stmpdir,
+- "%s%stemp-%u-%u%s",
+- stmpdir, dir_sep, getpid(), ++i, subdirbuf_suffix
++ stmpdir + strlen(stmpdir),
++ "%stemp-%u-%u%s",
++ dir_sep, getpid(), ++i, subdirbuf_suffix
+ );
+ }
+ }
Modified: trunk/libpar-packer-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/patches/series?rev=29286&op=diff
==============================================================================
--- trunk/libpar-packer-perl/debian/patches/series (original)
+++ trunk/libpar-packer-perl/debian/patches/series Mon Jan 5 03:26:23 2009
@@ -1,1 +1,2 @@
+fix-undefined-sprintf-usage
01_manpage-ext.patch
More information about the Pkg-perl-cvs-commits
mailing list