diff options
author | joerg <joerg@pkgsrc.org> | 2020-03-18 17:54:54 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-03-18 17:54:54 +0000 |
commit | 8790e6c77a81c4af8cc8a4d10dd14e4eedbe73f1 (patch) | |
tree | 5a6a8ae1dbd7dd4b92eab26b1d75d52b9b213e54 /games | |
parent | 3d5d16400c34c3b94100aa2a2a4b4316501f4694 (diff) | |
download | pkgsrc-8790e6c77a81c4af8cc8a4d10dd14e4eedbe73f1.tar.gz |
Fix const correctness with C++-aware string.h.
Diffstat (limited to 'games')
-rw-r--r-- | games/KoboDeluxe/distinfo | 3 | ||||
-rw-r--r-- | games/KoboDeluxe/patches/patch-graphics_window.cpp | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/games/KoboDeluxe/distinfo b/games/KoboDeluxe/distinfo index bc2b89072f6..d34ab599d83 100644 --- a/games/KoboDeluxe/distinfo +++ b/games/KoboDeluxe/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2019/10/08 16:13:12 ryoon Exp $ +$NetBSD: distinfo,v 1.9 2020/03/18 17:54:54 joerg Exp $ SHA1 (KoboDeluxe-0.5.1.tar.bz2) = bc49dbbae562baffd312444b373c7ebbf5e233c6 RMD160 (KoboDeluxe-0.5.1.tar.bz2) = b196054f2220fe1b479a490723b1f5da4e74aa1f @@ -6,4 +6,5 @@ SHA512 (KoboDeluxe-0.5.1.tar.bz2) = fc107e4367fd300574823aa40c68311d95de3a403d7c Size (KoboDeluxe-0.5.1.tar.bz2) = 1781752 bytes SHA1 (patch-enemies.h) = a3e9fb60581d7a7bcb079ceda5d1271f923470cd SHA1 (patch-enemy.cpp) = dbec6a60bb6a26cac66498584b3f100c6acd5f21 +SHA1 (patch-graphics_window.cpp) = 608b7eff6222bdd50f2cc575adb32903bba573ab SHA1 (patch-kobo.cpp) = 958b9b40caee7dc3d67edbe3b834eed5f2af6beb diff --git a/games/KoboDeluxe/patches/patch-graphics_window.cpp b/games/KoboDeluxe/patches/patch-graphics_window.cpp new file mode 100644 index 00000000000..0b716496317 --- /dev/null +++ b/games/KoboDeluxe/patches/patch-graphics_window.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-graphics_window.cpp,v 1.1 2020/03/18 17:54:54 joerg Exp $ + +--- graphics/window.cpp.orig 2020-03-18 13:31:58.788125295 +0000 ++++ graphics/window.cpp +@@ -398,7 +398,7 @@ void window_t::center_token_fxp(int _x, + */ + if(token) + { +- char *tok = strchr(txt, token); ++ const char *tok = strchr(txt, token); + if(tok) + tokpos = tok-txt; + else |