patch-gtk2_ardour_ardour_ui_cc 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-gtk2_ardour_ardour_ui_cc,v 1.2 2017/05/25 09:02:05 espie Exp $
  2. Fix non-sensical comparisons
  3. Index: gtk2_ardour/ardour_ui.cc
  4. --- gtk2_ardour/ardour_ui.cc.orig
  5. +++ gtk2_ardour/ardour_ui.cc
  6. @@ -716,7 +716,7 @@ ARDOUR_UI::check_memory_locking ()
  7. "This might cause %1 to run out of memory before your system "
  8. "runs out of memory. \n\n"
  9. "You can view the memory limit with 'ulimit -l', "
  10. - "and it is normally controlled by /etc/security/limits.conf"), PROGRAM_NAME));
  11. + "and it is normally controlled by /etc/login.conf"), PROGRAM_NAME));
  12. VBox* vbox = msg.get_vbox();
  13. HBox hbox;
  14. @@ -1964,7 +1964,7 @@ ARDOUR_UI::name_io_setup (AudioEngine& engine,
  15. const char **connections = io.input(0)->get_connections();
  16. - if (connections == 0 || connections[0] == '\0') {
  17. + if (connections == 0 || connections[0] == 0) {
  18. buf = _("off");
  19. } else {
  20. buf = connections[0];
  21. @@ -1983,7 +1983,7 @@ ARDOUR_UI::name_io_setup (AudioEngine& engine,
  22. const char **connections = io.output(0)->get_connections();
  23. - if (connections == 0 || connections[0] == '\0') {
  24. + if (connections == 0 || connections[0] == 0) {
  25. buf = _("off");
  26. } else {
  27. buf = connections[0];