bug-gnubatch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnubatch] gbch-xr castrates job title when using queue names


From: Jan Schampera
Subject: [bug-gnubatch] gbch-xr castrates job title when using queue names
Date: Tue, 31 Aug 2010 20:18:25 +0200
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

Moo!

gbch-xr castrates the job title when you use a queue name. The queue name is prepended with a ':', and the job title's first character is cut off.

I tracked it down to src/xbq_jcall.c cb_jqueue().

I checked the functionality of gbch-xr after patching, but i DID NOT check if it affects some other GTK component.

See attached file.

Jan "TheBonsai"
--- gnubatch.orig/src/gtk/xbq_jcall.c   2010-08-26 19:25:03.907701912 +0200
+++ gnubatch/src/gtk/xbq_jcall.c        2010-08-31 20:07:36.211702630 +0200
@@ -351,7 +351,7 @@
                        unsigned  tlng = strlen(cp) + strlen(cj->jobqueue) + 2;
                        if  (!(ntit = malloc(tlng)))
                                ABORT_NOMEM;
-                       sprintf(ntit, "%s:%s", cj->jobqueue, cp+1);
+                       sprintf(ntit, "%s:%s", cj->jobqueue, cp);
                }
                else
                        ntit = stracpy(cp);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]