summaryrefslogtreecommitdiff
path: root/editors/fxite/files/patch-src__menuspec.cpp
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-10-16 14:51:05 +0000
committerJohn Marino <marino@FreeBSD.org>2015-10-16 14:51:05 +0000
commitc212d6f6fd86963e9fc8e9cb56441cbf31145768 (patch)
treeffb54a1d193490f51a27001167deabd314e56150 /editors/fxite/files/patch-src__menuspec.cpp
parent- Update to 2.60 (diff)
editors/fxite: Fix when Fox-1.7 option selected
Reorganizes port, rewrapps pkg-descr too. This uses a new distribution file from GitHub but for some reason the version number didn't change. PR: 200300 Submitted by: ports fury
Diffstat (limited to '')
-rw-r--r--editors/fxite/files/patch-src__menuspec.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/editors/fxite/files/patch-src__menuspec.cpp b/editors/fxite/files/patch-src__menuspec.cpp
new file mode 100644
index 000000000000..7ae765afdc31
--- /dev/null
+++ b/editors/fxite/files/patch-src__menuspec.cpp
@@ -0,0 +1,12 @@
+--- src/menuspec.cpp.orig 2013-10-03 09:22:51 UTC
++++ src/menuspec.cpp
+@@ -616,7 +616,8 @@ void MenuMgr::ReadPopupMenu(FXRegistry*r
+ memset(keyname,0, sizeof(keyname));
+ snprintf(keyname,sizeof(keyname)-1,"Command_%d", i+1);
+ if (reg->existingEntry(popup_sect,keyname)) {
+- PopupCommands[i]=strdup(reg->readStringEntry(popup_sect,keyname));
++ const char*tmp=reg->readStringEntry(popup_sect,keyname);
++ PopupCommands[i]=strdup(tmp?tmp:"");
+ }
+ }
+ } else {