aboutsummaryrefslogtreecommitdiffstats
path: root/main/bsnes/nall-strlcpy.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-01 07:37:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-01 07:37:00 +0000
commitabed6cdf46a8005694c61592272d52018de360e7 (patch)
tree4697bce289657f1649ad5acdec05c8b6195b1e4b /main/bsnes/nall-strlcpy.patch
parentb3e4776fedd103c4bb4dda6fb5a6ed55b651efc8 (diff)
downloadaports-abed6cdf46a8005694c61592272d52018de360e7.tar.bz2
aports-abed6cdf46a8005694c61592272d52018de360e7.tar.xz
main/bsnes: upgrade to 0.86
Diffstat (limited to 'main/bsnes/nall-strlcpy.patch')
-rw-r--r--main/bsnes/nall-strlcpy.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/main/bsnes/nall-strlcpy.patch b/main/bsnes/nall-strlcpy.patch
deleted file mode 100644
index fa0859d44..000000000
--- a/main/bsnes/nall-strlcpy.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- ./bsnes/ui/tools/state-manager.cpp.orig
-+++ ./bsnes/ui/tools/state-manager.cpp
-@@ -135,7 +135,7 @@
- string StateManager::slotLoadDescription(unsigned n) {
- if(slot[n].capacity() == 0) return "(empty)";
- char text[DescriptionLength];
-- strlcpy(text, (const char*)slot[n].data() + HeaderLength, DescriptionLength);
-+ nall::strlcpy(text, (const char*)slot[n].data() + HeaderLength, DescriptionLength);
- return text;
- }
-
-@@ -143,7 +143,7 @@
- if(stateList.selected() == false) return;
- string text = descEdit.text();
- if(slot[stateList.selection()].capacity() > 0) {
-- strlcpy((char*)slot[stateList.selection()].data() + HeaderLength, (const char*)text, DescriptionLength);
-+ nall::strlcpy((char*)slot[stateList.selection()].data() + HeaderLength, (const char*)text, DescriptionLength);
- }
- refresh();
- }
---- ./bsnes/snes/system/serialization.cpp.orig
-+++ ./bsnes/snes/system/serialization.cpp
-@@ -7,7 +7,7 @@
- char description[512], profile[16];
- memset(&description, 0, sizeof description);
- memset(&profile, 0, sizeof profile);
-- strlcpy(profile, Info::Profile, sizeof profile);
-+ nall::strlcpy(profile, Info::Profile, sizeof profile);
-
- s.integer(signature);
- s.integer(version);