[haiku-commits] Re: haiku: hrev48743 - in src: preferences/network apps/processcontroller

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 29 Jan 2015 11:19:25 +0100

Am 28.01.2015 um 23:04 schrieb Jérôme Duval:
2015-01-28 22:25 GMT+01:00  <axeld@xxxxxxxxxxxxxxxx>:
@@ -2502,7 +2502,7 @@ BrowserWindow::_SmartURLHandler(const BString& url)
                         temp = "application/x-vnd.Be.URL.";
                         temp += proto;

-                       char* argv[1] = { (char*)url.String() };
+                       const char* argv[1] = { url.String(), NULL };

                         if (be_roster->Launch(temp.String(), 1, argv) == B_OK)
                                 return;

Assigning a one-length array with two items, is this really correct?

Sorry, I missed that, thanks for proof-reading!

Bye,
   Axel.

Other related posts: