[mupen64plus-core] 118/310: Don't print '%' twice in volume string
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:57:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-core.
commit b54a6024e544a4ae65d591e61316d7d77bae5417
Author: Sven Eckelmann <sven at narfation.org>
Date: Fri Oct 14 22:11:01 2011 +0200
Don't print '%' twice in volume string
---
debian/changelog | 1 +
debian/patches/double_percentage.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 058e710..6a4614a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ mupen64plus-core (1.99.4-4) UNRELEASED; urgency=low
set
- Update rewrite_makefile.patch and dejavu-font.patch; Fix installation of
cheat database
+ - Add double_percentage.patch, Don't print '%' twice in volume string
-- Sven Eckelmann <sven at narfation.org> Sat, 20 Aug 2011 21:53:01 +0200
diff --git a/debian/patches/double_percentage.patch b/debian/patches/double_percentage.patch
new file mode 100644
index 0000000..6ef1695
--- /dev/null
+++ b/debian/patches/double_percentage.patch
@@ -0,0 +1,17 @@
+Description: Don't print '%' twice in volume string
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/main/main.c b/src/main/main.c
+index deeb56851edc33d710ffbab9227542233df17991..ed665fa7d249256063bc764790c8b2093d30e200 100644
+--- a/src/main/main.c
++++ b/src/main/main.c
+@@ -295,8 +295,6 @@ void main_draw_volume_osd(void)
+ else
+ {
+ sprintf(msgString, "%s: %s", "Volume", volString);
+- if (msgString[strlen(msgString) - 1] == '%')
+- strcat(msgString, "%");
+ }
+
+ // create a new message or update an existing one
diff --git a/debian/patches/series b/debian/patches/series
index 88746e2..6b41f04 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,3 +17,4 @@ n64_cic_nus_6105.patch
mipmapping_doc.patch
new_minizip.patch
savestatepath_config.patch
+double_percentage.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-core.git
More information about the Pkg-games-commits
mailing list