Package: kaffeine-mozilla
Version: 0.4.3.1-1
Tags: patch

When building the source, this warning is emitted:

  plugin.c: In function 'launch_kaffeine':
  plugin.c:358: warning: not enough variable arguments to fit a sentinel

The reason is that argument 0, normally used to store the program name
when executing a program, is empty.  I propose this patch to avoid the
warning, follow the convention, and make sure the kaffeine process is
a bit easier to find in the process list.

--- kaffeine-mozilla-0.4.3.1.dfsg.orig/src/plugin.c
+++ kaffeine-mozilla-0.4.3.1.dfsg/src/plugin.c
@@ -296,9 +353,9 @@

     xprintf ("launch_kaffeine: url = %s\n", globals.url);

-    execlp("kaffeine","" , globals.url, NULL);
+    execlp("kaffeine", "kaffeine", globals.url, NULL);

-    if (execlp("kaffeine", NULL) == -1) {
+    if (execlp("kaffeine", "kaffeine", NULL) == -1) {
        perror("Error while launching Kaffeine");
        _exit(0);
     }

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to