Ticket #785: 199

File 199, 171.1 KB (added by dlove, 10 years ago)
Line 
1diff -Nur source/clients/common/read_defaults.c ../../gridengine-6.2u4/source/clients/common/read_defaults.c
2--- source/clients/common/read_defaults.c       2009-12-01 18:52:42.000000000 +0000
3+++ ../../gridengine-6.2u4/source/clients/common/read_defaults.c        2010-03-04 14:11:44.027051211 +0000
4@@ -223,7 +223,7 @@
5    DENTER (TOP_LAYER, "get_cwd_defaults_file_name");
6 
7    if (!getcwd(cwd, sizeof(cwd))) {
8-      sprintf(str, MSG_FILE_CANTREADCURRENTWORKINGDIR);
9+      sprintf(str, "%s", MSG_FILE_CANTREADCURRENTWORKINGDIR);
10       answer_list_add(answer_list, str, STATUS_EDISK, ANSWER_QUALITY_ERROR);
11    }
12   
13diff -Nur source/clients/common/sge_cqueue_qconf.c ../../gridengine-6.2u4/source/clients/common/sge_cqueue_qconf.c
14--- source/clients/common/sge_cqueue_qconf.c    2009-12-01 18:52:42.000000000 +0000
15+++ ../../gridengine-6.2u4/source/clients/common/sge_cqueue_qconf.c     2010-03-04 14:23:10.730562914 +0000
16@@ -788,7 +788,7 @@
17       }
18 
19       if (sge_dstring_get_string(&ds)) {
20-         printf(sge_dstring_get_string(&ds));
21+         printf("%s",sge_dstring_get_string(&ds));
22          ret = false;
23       }
24 
25diff -Nur source/clients/qacct/qacct.c ../../gridengine-6.2u4/source/clients/qacct/qacct.c
26--- source/clients/qacct/qacct.c        2009-12-01 18:52:41.000000000 +0000
27+++ ../../gridengine-6.2u4/source/clients/qacct/qacct.c 2010-03-04 14:11:44.091050443 +0000
28@@ -460,7 +460,7 @@
29                options.arflag = 1;
30             } else {
31                if (sscanf(argv[++ii], sge_u32, &options.ar_number) != 1) {
32-                  fprintf(stderr, MSG_PARSE_INVALID_AR_MUSTBEUINT);
33+                  fprintf(stderr, "%s", MSG_PARSE_INVALID_AR_MUSTBEUINT);
34                   fprintf(stderr, "\n");
35                   qacct_usage(&ctx, stderr);
36                   DRETURN(1);
37@@ -694,7 +694,7 @@
38                                          QAJ_arid);
39       summary_view = true;
40       if (sorted_list == NULL || sort_order == NULL) {
41-         ERROR((SGE_EVENT, MSG_HISTORY_NOTENOUGTHMEMORYTOCREATELIST));
42+         ERROR((SGE_EVENT, "%s", MSG_HISTORY_NOTENOUGTHMEMORYTOCREATELIST));
43          goto QACCT_EXIT;
44       }
45    }
46@@ -891,7 +891,7 @@
47          SGE_EXIT((void**)&ctx, 0);
48       }
49    } else if (options.taskstart && options.taskend && options.taskstep) {
50-      ERROR((SGE_EVENT, MSG_HISTORY_TOPTIONREQUIRESJOPTION ));
51+      ERROR((SGE_EVENT, "%s", MSG_HISTORY_TOPTIONREQUIRESJOPTION ));
52       qacct_usage(&ctx, stderr);
53       free_qacct_lists(&centry_list, &queue_list, &exechost_list, &hgrp_list);
54       SGE_EXIT((void**)&ctx, 0);
55diff -Nur source/clients/qconf/parse_qconf.c ../../gridengine-6.2u4/source/clients/qconf/parse_qconf.c
56--- source/clients/qconf/parse_qconf.c  2009-12-01 18:52:41.000000000 +0000
57+++ ../../gridengine-6.2u4/source/clients/qconf/parse_qconf.c   2010-03-04 14:11:44.103052399 +0000
58@@ -3037,7 +3037,7 @@
59    /* parse command line arguments */
60    attr = sge_strdup(NULL, *spp);
61    if (attr == NULL) {
62-      ERROR((SGE_EVENT, MSG_QCONF_NOATTRIBUTEGIVEN));
63+      ERROR((SGE_EVENT, "%s", MSG_QCONF_NOATTRIBUTEGIVEN));
64       DRETURN(1);
65    }
66    spp = sge_parser_get_next(ctx, spp);
67@@ -3282,7 +3282,7 @@
68             }
69               
70             if (ep == NULL) {
71-               fprintf(stderr, errstr);
72+               fprintf(stderr, "%s", errstr);
73                if (sge_error_and_exit(ctx, MSG_FILE_ERRORREADINGINFILE))
74                   continue;
75             }
76@@ -4129,7 +4129,7 @@
77             lFreeElem(&hep);
78          }
79          else {
80-            fprintf(stderr, MSG_ANSWER_NEEDHOSTNAMETODELLOCALCONFIG);
81+            fprintf(stderr, "%s", MSG_ANSWER_NEEDHOSTNAMETODELLOCALCONFIG);
82             fprintf(stderr, "\n");
83             sge_parse_return = 1;
84          }
85@@ -6259,7 +6259,7 @@
86       }
87    }
88    else {
89-      fprintf(stderr,  MSG_QCONF_NOEVENTCLIENTSREGISTERED);
90+      fprintf(stderr, "%s", MSG_QCONF_NOEVENTCLIENTSREGISTERED);
91       fprintf(stderr, "\n");
92    }
93    lFreeList(&alp);
94@@ -6320,7 +6320,7 @@
95       printf("%-25.24s%10"sge_fu32"\n",MSG_TABLE_SUM_F,sum);
96    }
97    else {
98-      fprintf(stderr,  MSG_QCONF_NOEXECUTIONHOSTSDEFINED );
99+      fprintf(stderr, "%s", MSG_QCONF_NOEXECUTIONHOSTSDEFINED );
100       fprintf(stderr, "\n");
101    }
102   
103@@ -6981,7 +6981,7 @@
104          DRETURN(1);
105       }
106       if (*epp == NULL){
107-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_FILE_ERRORREADINGINFILE));
108+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_FILE_ERRORREADINGINFILE));
109          answer_list_add(alpp, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
110          DRETURN(1);
111       }
112@@ -7119,7 +7119,7 @@
113       lList *lp = lGetList(*epp, fields[0]);
114       
115       if ((lp == NULL) || (lGetNumberOfElem(lp) == 0)) {
116-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_QCONF_CANT_MODIFY_NONE));
117+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_QCONF_CANT_MODIFY_NONE));
118          answer_list_add(alpp, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
119          lFreeElem(epp);
120          lFreeWhat(&what);
121@@ -7137,7 +7137,7 @@
122          for (nm = ep->descr[0].nm; nm != NoName; nm = ep->descr[count++].nm) {           
123             if (lGetType(ep->descr, nm) == lListT) {
124                if (lGetList(ep, nm) == NULL) {
125-                  SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_QCONF_CANT_MODIFY_NONE));
126+                  SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_QCONF_CANT_MODIFY_NONE));
127                   answer_list_add(alpp, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
128                   lFreeElem(epp);
129                   lFreeWhat(&what);
130diff -Nur source/clients/qmod/qmod.c ../../gridengine-6.2u4/source/clients/qmod/qmod.c
131--- source/clients/qmod/qmod.c  2009-12-01 18:52:42.000000000 +0000
132+++ ../../gridengine-6.2u4/source/clients/qmod/qmod.c   2010-03-04 14:11:44.103052399 +0000
133@@ -472,7 +472,7 @@
134    }
135 
136    if(lGetNumberOfElem(*ppcmdline)) {
137-     sprintf(str, MSG_PARSE_TOOMANYOPTIONS);
138+     sprintf(str, "%s", MSG_PARSE_TOOMANYOPTIONS);
139      if(!usageshowed)
140         qmod_usage(stderr, NULL);
141      answer_list_add(&alp, str, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
142diff -Nur source/clients/qmon/qmon_arsub.c ../../gridengine-6.2u4/source/clients/qmon/qmon_arsub.c
143--- source/clients/qmon/qmon_arsub.c    2009-12-01 18:52:41.000000000 +0000
144+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_arsub.c     2010-03-04 14:33:20.659071087 +0000
145@@ -809,7 +809,7 @@
146          pe = strtok(theInput, " ");
147          pe_range = strtok(NULL, "\n");
148          if (!(pe_range && pe_range[0] != '\0')) {
149-            sprintf(buf,
150+            sprintf(buf, "%s",
151                XmtLocalize(w,
152                "Parallel Environment requires valid name and valid range !",
153                "Parallel Environment requires valid name and valid range !")
154@@ -822,7 +822,7 @@
155                                          1, 0, INF_ALLOWED);
156             lFreeList(&range_list);
157             if (alp) {
158-               sprintf(buf,
159+               sprintf(buf, "%s",
160                   XmtLocalize(w,
161                   "Parallel Environment requires valid name and valid range !",
162                   "Parallel Environment requires valid name and valid range !")
163@@ -835,7 +835,7 @@
164 
165       if (!(lp = lCreateElemList("ARSubList", AR_Type, 1))) {
166          DPRINTF(("lCreateElemList failure\n"));
167-         sprintf(buf,
168+         sprintf(buf, "%s",
169                  XmtLocalize(w,
170                              "AR submission failed",
171                              "AR submission failed")
172@@ -845,7 +845,7 @@
173 
174       if (!qmonARSMToCull(&ARSMData, lFirst(lp), 0)) {
175          DPRINTF(("qmonARSMToCull failure\n"));
176-         sprintf(buf,
177+         sprintf(buf, "%s",
178                  XmtLocalize(w,
179                              "AR submission failed",
180                              "AR submission failed")
181@@ -885,7 +885,7 @@
182                              XmtLocalize(w, "AR %d failed", "AR %d failed"),
183                              ar_id);
184          } else {
185-            XmtMsgLinePrintf(arsub_message,
186+            XmtMsgLinePrintf(arsub_message, "%s",
187                              XmtLocalize(w, "AR Submission failed",
188                                           "AR Submission failed"));
189          }
190diff -Nur source/clients/qmon/qmon_comm.c ../../gridengine-6.2u4/source/clients/qmon/qmon_comm.c
191--- source/clients/qmon/qmon_comm.c     2009-12-01 18:52:41.000000000 +0000
192+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_comm.c      2010-03-04 14:30:56.426564010 +0000
193@@ -221,7 +221,7 @@
194    }
195 
196    if (ctx->is_alive(ctx) != CL_RETVAL_OK) {
197-      sprintf(msg, XmtLocalize(AppShell, "cannot reach qmaster", "cannot reach qmaster"));
198+      sprintf(msg, "%s", XmtLocalize(AppShell, "cannot reach qmaster", "cannot reach qmaster"));
199       contact_ok = XmtDisplayErrorAndAsk(AppShell, "nocontact",
200                                                 msg, "@{Retry}", "@{Abort}",
201                                                 XmtYesButton, NULL);
202diff -Nur source/clients/qmon/qmon_main.c ../../gridengine-6.2u4/source/clients/qmon/qmon_main.c
203--- source/clients/qmon/qmon_main.c     2009-12-01 18:52:41.000000000 +0000
204+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_main.c      2010-03-04 14:27:58.626565313 +0000
205@@ -359,19 +359,19 @@
206 
207    printf("%s %s\n", GE_SHORTNAME, GDI_VERSION);
208 /*    printf("%s\n", feature_get_product_name(FS_SHORT_VERSION, &ds)); */
209-   printf(XmtLocalize2(w, "usage: qmon\n", "qmon_usage", "usageTitle"));
210+   printf("%s",XmtLocalize2(w, "usage: qmon\n", "qmon_usage", "usageTitle"));
211    printf("    [-cmap]                           ");
212-   printf(XmtLocalize2(w, "use own colormap\n", "qmon_usage", "cmapOption"));
213+   printf("%s",XmtLocalize2(w, "use own colormap\n", "qmon_usage", "cmapOption"));
214    printf("    [-help]                           ");
215-   printf(XmtLocalize2(w, "show this information and exit\n",
216+   printf("%s",XmtLocalize2(w, "show this information and exit\n",
217                            "qmon_usage", "helpOption"));
218    printf("    [-fontFamily {big|medium|small}]  ");
219-   printf(XmtLocalize2(w, "use small/medium/big fonts\n",
220+   printf("%s",XmtLocalize2(w, "use small/medium/big fonts\n",
221                            "qmon_usage", "fontFamilyOption"));
222    printf("    [-nologo]                         ");
223-   printf(XmtLocalize2(w, "startup without logo\n",
224+   printf("%s",XmtLocalize2(w, "startup without logo\n",
225                            "qmon_usage", "nologoOption"));
226-   printf(XmtLocalize2(w, "Additionally the default X commandline switches can be used.\nFor further information see the manual page X(1)\n",
227+   printf("%s",XmtLocalize2(w, "Additionally the default X commandline switches can be used.\nFor further information see the manual page X(1)\n",
228           "qmon_usage", "X11OptionInfo"));
229 
230    DEXIT;
231diff -Nur source/clients/qmon/qmon_preferences.c ../../gridengine-6.2u4/source/clients/qmon/qmon_preferences.c
232--- source/clients/qmon/qmon_preferences.c      2009-12-01 18:52:41.000000000 +0000
233+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_preferences.c       2010-03-04 15:48:27.506553227 +0000
234@@ -469,7 +469,7 @@
235    if (!(ep = lCreateElem(args->objtype))) {
236       FCLOSE(fp);
237       free(buf);
238-      ERROR((SGE_EVENT, MSG_SGETEXT_NOMEM));
239+      ERROR((SGE_EVENT, "%s", MSG_SGETEXT_NOMEM));
240       DEXIT;
241       return NULL;
242    }
243diff -Nur source/clients/qmon/qmon_submit.c ../../gridengine-6.2u4/source/clients/qmon/qmon_submit.c
244--- source/clients/qmon/qmon_submit.c   2009-12-01 18:52:41.000000000 +0000
245+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_submit.c    2010-03-04 15:47:24.027064642 +0000
246@@ -1353,7 +1353,7 @@
247       */
248       if ((!SMData.job_script || SMData.job_script[0] == '\0') &&
249           !ISSET(submit_mode_data.sub_mode, SUBMIT_QSH)) {
250-         sprintf(buf, XmtLocalize(w, "Job Script required !",
251+         sprintf(buf, "%s", XmtLocalize(w, "Job Script required !",
252                   "Job Script required !"));
253          goto error;
254       }
255@@ -1368,7 +1368,7 @@
256          pe = strtok(theInput, " ");
257          pe_range = strtok(NULL, "\n");
258          if (!(pe_range && pe_range[0] != '\0')) {
259-            sprintf(buf,
260+            sprintf(buf, "%s",
261                XmtLocalize(w,
262                "Parallel Environment requires valid name and valid range !",
263                "Parallel Environment requires valid name and valid range !")
264@@ -1381,7 +1381,7 @@
265                                          1, 0, INF_ALLOWED);
266             lFreeList(&range_list);
267             if (alp) {
268-               sprintf(buf,
269+               sprintf(buf, "%s",
270                   XmtLocalize(w,
271                   "Parallel Environment requires valid name and valid range !",
272                   "Parallel Environment requires valid name and valid range !")
273@@ -1418,7 +1418,7 @@
274       if (set_sec_cred(sge_root, mastername, lFirst(lp), &alp) != 0) {
275          qmonMessageBox(w, alp, true);
276          lFreeList(&alp);
277-         sprintf(buf, MSG_SEC_SETJOBCRED);
278+         sprintf(buf, "%s", MSG_SEC_SETJOBCRED);
279          sprintf(buf, "\n");
280          goto error;
281       }   
282@@ -1468,7 +1468,7 @@
283                              XmtLocalize(w, "Job %d failed", "Job %d failed"),
284                              jobid);
285          else
286-            XmtMsgLinePrintf(submit_message,
287+            XmtMsgLinePrintf(submit_message, "%s",
288                              XmtLocalize(w, "Job Submission failed",
289                                           "Job Submission failed"));
290          XmtMsgLineClear(submit_message, DISPLAY_MESSAGE_DURATION);
291diff -Nur source/clients/qmon/qmon_ticket.c ../../gridengine-6.2u4/source/clients/qmon/qmon_ticket.c
292--- source/clients/qmon/qmon_ticket.c   2009-12-01 18:52:41.000000000 +0000
293+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_ticket.c    2010-03-04 14:32:19.494560962 +0000
294@@ -503,9 +503,9 @@
295       qmonMessageBox(w, alp, 0);
296 
297       if (alp && lGetUlong(lFirst(alp), AN_status) != STATUS_OK)
298-         XmtMsgLinePrintf(tov_message, XmtLocalize(w, "Failure", "Failure"));
299+         XmtMsgLinePrintf(tov_message, "%s", XmtLocalize(w, "Failure", "Failure"));
300       else
301-         XmtMsgLinePrintf(tov_message, XmtLocalize(w, "Success", "Success"));
302+         XmtMsgLinePrintf(tov_message, "%s", XmtLocalize(w, "Success", "Success"));
303       XmtMsgLineClear(tov_message, DISPLAY_MESSAGE_DURATION);
304 
305       data_changed = False;
306diff -Nur source/clients/qmon/qmon_timer.c ../../gridengine-6.2u4/source/clients/qmon/qmon_timer.c
307--- source/clients/qmon/qmon_timer.c    2009-12-01 18:52:41.000000000 +0000
308+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_timer.c     2010-03-04 14:30:39.838564397 +0000
309@@ -393,7 +393,7 @@
310    DENTER(GUI_LAYER, "qmonTimerCheckInteractiveJob");
311 
312    if (ctx->is_alive(ctx) != CL_RETVAL_OK) {
313-      sprintf(msg, XmtLocalize(AppShell, "cannot reach qmaster", "cannot reach qmaster"));
314+      sprintf(msg, "%s", XmtLocalize(AppShell, "cannot reach qmaster", "cannot reach qmaster"));
315       contact_ok = XmtDisplayErrorAndAsk(AppShell, "nocontact",
316                                                 msg, "@{Retry}", "@{Abort}",
317                                                 XmtYesButton, NULL);
318diff -Nur source/clients/qmon/qmon_util.c ../../gridengine-6.2u4/source/clients/qmon/qmon_util.c
319--- source/clients/qmon/qmon_util.c     2009-12-01 18:52:41.000000000 +0000
320+++ ../../gridengine-6.2u4/source/clients/qmon/qmon_util.c      2010-03-04 14:11:44.119050490 +0000
321@@ -960,7 +960,7 @@
322       if (item[0] == '@' && item[1] != '{')
323          sprintf(buf, "@%s", item);
324       else
325-         sprintf(buf, item);
326+      sprintf(buf, "%s", item);
327       xmitem = XmtCreateLocalizedXmString(list, buf);
328       if (XmListItemExists(list, xmitem)) {
329          XmStringFree(xmitem);
330diff -Nur source/clients/qrsh/qrsh_starter.c ../../gridengine-6.2u4/source/clients/qrsh/qrsh_starter.c
331--- source/clients/qrsh/qrsh_starter.c  2009-12-01 18:52:42.000000000 +0000
332+++ ../../gridengine-6.2u4/source/clients/qrsh/qrsh_starter.c   2010-03-04 14:11:44.103052399 +0000
333@@ -235,7 +235,7 @@
334          strcpy(command, line + 13);
335       } else if (strncmp(line, "QRSH_WRAPPER=", 13) == 0) {
336          if (*(line + 13) == 0) {
337-            fprintf(stderr, MSG_QRSH_STARTER_EMPTY_WRAPPER);
338+            fprintf(stderr, "%s", MSG_QRSH_STARTER_EMPTY_WRAPPER);
339             fprintf(stderr, "\n");
340          } else {
341             if ((*wrapper = (char *)malloc(strlen(line) - 13 + 1)) == NULL) {
342diff -Nur source/clients/qrstat/qrstat_report_handler_xml.c ../../gridengine-6.2u4/source/clients/qrstat/qrstat_report_handler_xml.c
343--- source/clients/qrstat/qrstat_report_handler_xml.c   2009-12-01 18:52:41.000000000 +0000
344+++ ../../gridengine-6.2u4/source/clients/qrstat/qrstat_report_handler_xml.c    2010-03-04 14:24:10.019054448 +0000
345@@ -261,7 +261,7 @@
346    DENTER(TOP_LAYER, "qrstat_report_finish");
347   
348    sge_dstring_append(buffer, "</qrstat>\n");
349-   printf(sge_dstring_get_string((dstring *)handler->ctx));
350+   printf("%s",sge_dstring_get_string((dstring *)handler->ctx));
351 
352    DRETURN(ret);
353 }
354diff -Nur source/clients/qsh/parse_job_qsh.c ../../gridengine-6.2u4/source/clients/qsh/parse_job_qsh.c
355--- source/clients/qsh/parse_job_qsh.c  2009-12-01 18:52:41.000000000 +0000
356+++ ../../gridengine-6.2u4/source/clients/qsh/parse_job_qsh.c   2010-03-04 14:11:44.111050294 +0000
357@@ -279,7 +279,7 @@
358       char str[1024];
359 
360       lRemoveElem(cmdline, &ep);
361-      sprintf(str, MSG_ANSWER_HELPNOTALLOWEDINCONTEXT);
362+      sprintf(str, "%s", MSG_ANSWER_HELPNOTALLOWEDINCONTEXT);
363       answer_list_add(&answer, str, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
364       lFreeList(&path_alias);
365       DEXIT;
366diff -Nur source/clients/qsh/qsh.c ../../gridengine-6.2u4/source/clients/qsh/qsh.c
367--- source/clients/qsh/qsh.c    2009-12-01 18:52:41.000000000 +0000
368+++ ../../gridengine-6.2u4/source/clients/qsh/qsh.c     2010-03-04 14:11:44.111050294 +0000
369@@ -450,7 +450,7 @@
370          return NULL;
371       } else {
372          if (rval == 0) {
373-            ERROR((SGE_EVENT, MSG_QSH_ERRORENDINGCONNECTION));
374+            ERROR((SGE_EVENT, "%s", MSG_QSH_ERRORENDINGCONNECTION));
375             DEXIT;
376             return NULL;
377          }
378@@ -501,7 +501,7 @@
379 
380    DENTER(TOP_LAYER, "get_remote_exit_code");
381   
382-   VERBOSE_LOG((stderr, MSG_QSH_READINGEXITCODEFROMSHEPHERD));
383+   VERBOSE_LOG((stderr, "%s", MSG_QSH_READINGEXITCODEFROMSHEPHERD));
384 
385    msgsock = wait_for_qrsh_socket(sock, QSH_SOCKET_FINAL_TIMEOUT);
386    if (msgsock != -1) {
387@@ -518,7 +518,7 @@
388       }
389    }
390 
391-   ERROR((SGE_EVENT, MSG_QSH_ERRORREADINGRETURNCODEOFREMOTECOMMAND));
392+   ERROR((SGE_EVENT, "%s", MSG_QSH_ERRORREADINGRETURNCODEOFREMOTECOMMAND));
393    DEXIT;
394    return -1;
395 }
396@@ -567,7 +567,7 @@
397    new_arg = malloc(strlen(arg) + 3);
398 
399    if (new_arg == NULL) {
400-      ERROR((SGE_EVENT, MSG_QSH_MALLOCFAILED));
401+      ERROR((SGE_EVENT, "%s", MSG_QSH_MALLOCFAILED));
402       DEXIT;
403       return NULL;
404    }
405@@ -762,7 +762,7 @@
406 
407       /* create an argument list */
408       if (!sge_sl_create(&sl_args)) {
409-         ERROR((SGE_EVENT, MSG_SGETEXT_NOMEM));
410+         ERROR((SGE_EVENT, "%s", MSG_SGETEXT_NOMEM));
411          exit(EXIT_FAILURE);
412       }
413 
414@@ -1020,7 +1020,7 @@
415    /* get configuration from qmaster */
416    if (gdi2_get_configuration(ctx, qualified_hostname, &global, &local) ||
417       merge_configuration(NULL, progid, cell_root, global, local, &conf_list)) {
418-      ERROR((SGE_EVENT, MSG_CONFIG_CANTGETCONFIGURATIONFROMQMASTER));
419+      ERROR((SGE_EVENT, "%s", MSG_CONFIG_CANTGETCONFIGURATIONFROMQMASTER));
420       lFreeList(&conf_list);
421       lFreeElem(&global);
422       lFreeElem(&local);
423@@ -1031,7 +1031,7 @@
424    /* search for config entry */
425    qlogin_cmd_elem = lGetElemStr(conf_list, CF_name, config_name);
426    if (qlogin_cmd_elem == NULL) {
427-      ERROR((SGE_EVENT, MSG_CONFIG_CANTGETCONFIGURATIONFROMQMASTER));
428+      ERROR((SGE_EVENT, "%s", MSG_CONFIG_CANTGETCONFIGURATIONFROMQMASTER));
429       lFreeList(&conf_list);
430       lFreeElem(&global);
431       lFreeElem(&local);
432@@ -2004,7 +2004,7 @@
433          }
434       }
435       
436-      VERBOSE_LOG((stderr, MSG_QSH_WAITINGFORINTERACTIVEJOBTOBESCHEDULED));
437+      VERBOSE_LOG((stderr, "%s", MSG_QSH_WAITINGFORINTERACTIVEJOBTOBESCHEDULED));
438 
439       DPRINTF(("R E A D I N G    J O B ! ! ! ! ! ! ! ! ! ! !\n"));
440       DPRINTF(("============================================\n"));
441@@ -2186,7 +2186,7 @@
442   
443          do_shut = shut_me_down;
444          if (do_shut || do_exit) {
445-            WARNING((SGE_EVENT, MSG_QSH_REQUESTFORINTERACTIVEJOBHASBEENCANCELED));
446+            WARNING((SGE_EVENT, "%s", MSG_QSH_REQUESTFORINTERACTIVEJOBHASBEENCANCELED));
447             delete_job(ctx, job_id, lp_jobs);
448             lFreeList(&lp_poll);
449             do_exit = 1;
450@@ -2259,7 +2259,7 @@
451                 * so exit qrsh/qlogin with real exit_status.
452                 */
453                if (g_new_interactive_job_support == false) {
454-                  WARNING((SGE_EVENT, MSG_QSH_CANTSTARTINTERACTIVEJOB));
455+                  WARNING((SGE_EVENT, "%s", MSG_QSH_CANTSTARTINTERACTIVEJOB));
456                   do_exit = 1;
457                   exit_status = 1;
458                } else {
459diff -Nur source/clients/qstat/qstat.c ../../gridengine-6.2u4/source/clients/qstat/qstat.c
460--- source/clients/qstat/qstat.c        2009-12-01 18:52:41.000000000 +0000
461+++ ../../gridengine-6.2u4/source/clients/qstat/qstat.c 2010-03-04 14:22:46.975063684 +0000
462@@ -1652,7 +1652,7 @@
463 {
464    DENTER(TOP_LAYER, "qstat_stdout_queue_load_alarm");
465    printf("\t");
466-   printf(reason);
467+   printf("%s", reason);
468    printf("\n");
469    DEXIT;
470    return 0;
471@@ -1662,7 +1662,7 @@
472 {
473    DENTER(TOP_LAYER, "qstat_stdout_queue_suspend_alarm");
474    printf("\t");
475-   printf(reason);
476+   printf("%s", reason);
477    printf("\n");
478    DEXIT;
479    return 0;
480@@ -1672,7 +1672,7 @@
481 {
482    DENTER(TOP_LAYER, "qstat_stdout_queue_message");
483    printf("\t");
484-   printf(message);
485+   printf("%s", message);
486    printf("\n");
487    DEXIT;
488    return 0;
489diff -Nur source/clients/qstat/qstat_cmdline.c ../../gridengine-6.2u4/source/clients/qstat/qstat_cmdline.c
490--- source/clients/qstat/qstat_cmdline.c        2009-12-01 18:52:41.000000000 +0000
491+++ ../../gridengine-6.2u4/source/clients/qstat/qstat_cmdline.c 2010-03-04 14:11:44.111050294 +0000
492@@ -295,7 +295,7 @@
493       }   
494       
495       if (getenv("MORE_INFO")) {
496-         fprintf(fp, MSG_QSTAT_USAGE_ADDITIONALDEBUGGINGOPTIONS);
497+         fprintf(fp, "%s", MSG_QSTAT_USAGE_ADDITIONALDEBUGGINGOPTIONS);
498          fprintf(fp, "        [-dj]                             %s\n",MSG_QSTAT_USAGE_DUMPCOMPLETEJOBLISTTOSTDOUT);
499          fprintf(fp, "        [-dq]                             %s\n",MSG_QSTAT_USAGE_DUMPCOMPLETEQUEUELISTTOSTDOUT);
500       }
501diff -Nur source/clients/qsub/qsub.c ../../gridengine-6.2u4/source/clients/qsub/qsub.c
502--- source/clients/qsub/qsub.c  2009-12-01 18:52:42.000000000 +0000
503+++ ../../gridengine-6.2u4/source/clients/qsub/qsub.c   2010-03-04 14:23:41.535059065 +0000
504@@ -364,7 +364,7 @@
505       }
506       printf("\n");
507    } else {
508-      printf(MSG_JOB_VERIFYFOUNDQ);
509+      printf("%s",MSG_JOB_VERIFYFOUNDQ);
510       printf("\n");
511    }   
512 
513@@ -705,5 +705,5 @@
514 *******************************************************************************/
515 static void error_handler(const char *message)
516 {
517-   fprintf(stderr, message);
518+   fprintf(stderr, "%s", message);
519 }
520diff -Nur source/common/parse_job_cull.c ../../gridengine-6.2u4/source/common/parse_job_cull.c
521--- source/common/parse_job_cull.c      2009-12-01 18:52:51.000000000 +0000
522+++ ../../gridengine-6.2u4/source/common/parse_job_cull.c       2010-03-04 14:11:44.023053200 +0000
523@@ -344,7 +344,7 @@
524 
525    if ((ep = lGetElemStr(cmdline, SPA_switch, "-help"))) {
526       lRemoveElem(cmdline, &ep);
527-      sprintf(error_string, MSG_ANSWER_HELPNOTALLOWEDINCONTEXT);
528+      sprintf(error_string, "%s", MSG_ANSWER_HELPNOTALLOWEDINCONTEXT);
529       answer_list_add(&answer, error_string,
530                       STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
531       DRETURN(answer);
532diff -Nur source/common/parse_qsub.c ../../gridengine-6.2u4/source/common/parse_qsub.c
533--- source/common/parse_qsub.c  2009-12-01 18:52:51.000000000 +0000
534+++ ../../gridengine-6.2u4/source/common/parse_qsub.c   2010-03-04 14:11:44.027051211 +0000
535@@ -1761,7 +1761,7 @@
536 
537          sp++;
538          if (!*sp) {
539-             sprintf(str, MSG_PARSE_ATSIGNOPTIONMUSTHAVEFILEARGUMENT);
540+             sprintf(str, "%s", MSG_PARSE_ATSIGNOPTIONMUSTHAVEFILEARGUMENT);
541              answer_list_add(&answer, str, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
542              DEXIT;
543              return answer;
544diff -Nur source/daemons/common/admin_mail.c ../../gridengine-6.2u4/source/daemons/common/admin_mail.c
545--- source/daemons/common/admin_mail.c  2009-12-01 18:52:41.000000000 +0000
546+++ ../../gridengine-6.2u4/source/daemons/common/admin_mail.c   2010-03-04 14:11:44.035052329 +0000
547@@ -243,7 +243,7 @@
548                 sprintf(str_general, MSG_GFSTATE_JOB_U, sge_u32c(jobid));
549           }
550           else {
551-             sprintf(str_general, MSG_NONE);
552+             sprintf(str_general, "%s", MSG_NONE);
553           }
554       } else {
555           /* This is a pe task */
556diff -Nur source/daemons/common/mail.c ../../gridengine-6.2u4/source/daemons/common/mail.c
557--- source/daemons/common/mail.c        2009-12-01 18:52:41.000000000 +0000
558+++ ../../gridengine-6.2u4/source/daemons/common/mail.c 2010-03-04 14:11:44.035052329 +0000
559@@ -101,7 +101,7 @@
560          user = lGetString(ep, MR_user);
561          host = lGetHost(ep, MR_host);
562          if (!user && !host) {
563-            ERROR((SGE_EVENT, MSG_MAIL_EMPTYUSERHOST));
564+            ERROR((SGE_EVENT, "%s", MSG_MAIL_EMPTYUSERHOST));
565             FREE(mailer);
566             DRETURN_VOID;
567          } else if (!host) {
568@@ -175,7 +175,7 @@
569 #if defined(SOLARIS)
570        ERROR((SGE_EVENT, MSG_SMF_MAIL_FORK_FAILED_S, err_str));
571 #else
572-       ERROR((SGE_EVENT, MSG_MAIL_NOFORK));
573+       ERROR((SGE_EVENT, "%s", MSG_MAIL_NOFORK));
574 #endif
575    }
576 
577@@ -190,12 +190,12 @@
578       and leave_commd() unregisters the commproc
579    */
580    if (pipe(pipefds) < 0) {
581-      ERROR((SGE_EVENT, MSG_MAIL_NOPIPE));
582+      ERROR((SGE_EVENT, "%s", MSG_MAIL_NOPIPE));
583       exit(1);
584    }
585    /* Don't need to start in new contract on Solaris - already in new one */
586    if ((pid = fork()) < 0) {
587-      ERROR((SGE_EVENT, MSG_MAIL_NOFORK));
588+      ERROR((SGE_EVENT, "%s", MSG_MAIL_NOFORK));
589       exit(1);
590    }
591    if (!pid) {
592@@ -205,7 +205,7 @@
593          sprintf(user_str, "%s", user);
594 
595       if (dup2(pipefds[0], 0) < 0) {
596-         CRITICAL((SGE_EVENT, MSG_MAIL_NODUP));
597+         CRITICAL((SGE_EVENT, "%s", MSG_MAIL_NODUP));
598          exit(1);
599       }
600 
601@@ -245,13 +245,13 @@
602       alarm(0);
603       if (pid2 == 0) {          /* how could this happen? */
604          kill(pid, SIGKILL);
605-         ERROR((SGE_EVENT, MSG_MAIL_NOMAIL1));
606+         ERROR((SGE_EVENT, "%s", MSG_MAIL_NOMAIL1));
607          exit(1);
608       }
609 
610       if (pid2 == -1) {         /* alarm must have went off */
611          kill(pid, SIGKILL);
612-         ERROR((SGE_EVENT, MSG_MAIL_NOMAIL2));
613+         ERROR((SGE_EVENT, "%s", MSG_MAIL_NOMAIL2));
614          exit(1);
615       }
616 
617diff -Nur source/daemons/common/procfs.c ../../gridengine-6.2u4/source/daemons/common/procfs.c
618--- source/daemons/common/procfs.c      2009-12-01 18:52:41.000000000 +0000
619+++ ../../gridengine-6.2u4/source/daemons/common/procfs.c       2010-03-04 18:00:21.059059321 +0000
620@@ -231,7 +231,7 @@
621       if (shepherd_trace) {
622          char err_str[256];
623 
624-         sprintf(err_str, MSG_SGE_NGROUPS_MAXOSRECONFIGURATIONNECESSARY );
625+         sprintf(err_str,"%s",MSG_SGE_NGROUPS_MAXOSRECONFIGURATIONNECESSARY );
626          shepherd_trace(err_str);
627       }
628 /*
629@@ -247,7 +247,7 @@
630       if (shepherd_trace) {
631          char err_str[256];
632 
633-         sprintf(err_str, MSG_SGE_PROCFSKILLADDGRPIDMALLOCFAILED );
634+         sprintf(err_str, "%s", MSG_SGE_PROCFSKILLADDGRPIDMALLOCFAILED );
635          shepherd_trace(err_str);
636       }
637 
638@@ -441,14 +441,14 @@
639 
640    max_groups = sge_sysconf(SGE_SYSCONF_NGROUPS_MAX);
641    if (max_groups <= 0) {
642-      ERROR((SGE_EVENT, MSG_SGE_NGROUPS_MAXOSRECONFIGURATIONNECESSARY));
643+      ERROR((SGE_EVENT, "%s", MSG_SGE_NGROUPS_MAXOSRECONFIGURATIONNECESSARY));
644       DEXIT;
645       return 1; 
646    }   
647 
648    list = (gid_t*) malloc(max_groups*sizeof(gid_t));
649    if (list == NULL) {
650-      ERROR((SGE_EVENT, MSG_SGE_PTDISPATCHPROCTOJOBMALLOCFAILED));
651+      ERROR((SGE_EVENT, "%s", MSG_SGE_PTDISPATCHPROCTOJOBMALLOCFAILED));
652       DEXIT;
653       return 1;
654    }
655diff -Nur source/daemons/common/qmaster_heartbeat.c ../../gridengine-6.2u4/source/daemons/common/qmaster_heartbeat.c
656--- source/daemons/common/qmaster_heartbeat.c   2009-12-01 18:52:41.000000000 +0000
657+++ ../../gridengine-6.2u4/source/daemons/common/qmaster_heartbeat.c    2010-03-04 14:11:44.035052329 +0000
658@@ -65,7 +65,7 @@
659    DENTER(TOP_LAYER, "get_qmaster_heartbeat");
660 
661    if (file == NULL) {
662-      ERROR((SGE_EVENT, MSG_HEART_NO_FILENAME));
663+      ERROR((SGE_EVENT, "%s", MSG_HEART_NO_FILENAME));
664       DEXIT;
665       return -1;
666    }
667@@ -138,7 +138,7 @@
668    DENTER(TOP_LAYER, "inc_qmaster_heartbeat");
669 
670    if (file == NULL) {
671-      ERROR((SGE_EVENT, MSG_HEART_NO_FILENAME));
672+      ERROR((SGE_EVENT, "%s", MSG_HEART_NO_FILENAME));
673       DEXIT;
674       return -1;
675    }
676diff -Nur source/daemons/common/startprog.c ../../gridengine-6.2u4/source/daemons/common/startprog.c
677--- source/daemons/common/startprog.c   2009-12-01 18:52:41.000000000 +0000
678+++ ../../gridengine-6.2u4/source/daemons/common/startprog.c    2010-03-04 14:11:44.035052329 +0000
679@@ -210,7 +210,7 @@
680    else if (WIFSIGNALED(status))
681       exit_status = 8;
682    else {
683-      ERROR((SGE_EVENT, MSG_PROC_WAITPIDRETURNEDUNKNOWNSTATUS));
684+      ERROR((SGE_EVENT, "%s", MSG_PROC_WAITPIDRETURNEDUNKNOWNSTATUS));
685       exit_status = 8;
686    }
687 
688diff -Nur source/daemons/common/unparse_job_cull.c ../../gridengine-6.2u4/source/daemons/common/unparse_job_cull.c
689--- source/daemons/common/unparse_job_cull.c    2009-12-01 18:52:41.000000000 +0000
690+++ ../../gridengine-6.2u4/source/daemons/common/unparse_job_cull.c     2010-03-04 14:11:44.039051196 +0000
691@@ -176,7 +176,7 @@
692       ret = uni_print_list(NULL, str, sizeof(str) - 1, lp, fields, delis, 0);
693       if (ret) {
694          DPRINTF(("Error %d formatting jid_request_list as -hold_jid\n", ret));
695-         sprintf(str, MSG_LIST_ERRORFORMATINGJIDPREDECESSORLISTASHOLDJID);
696+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGJIDPREDECESSORLISTASHOLDJID);
697          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
698          return answer;
699       }
700@@ -194,7 +194,7 @@
701       ret = uni_print_list(NULL, str, sizeof(str) - 1, lp, fields, delis, 0);
702       if (ret) {
703          DPRINTF(("Error %d formatting ja_ad_request_list as -hold_jid_ad\n", ret));
704-         sprintf(str, MSG_LIST_ERRORFORMATINGJIDPREDECESSORLISTASHOLDJIDAD);
705+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGJIDPREDECESSORLISTASHOLDJIDAD);
706          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
707          return answer;
708       }
709@@ -230,7 +230,7 @@
710          0);
711       if (ret) {
712          DPRINTF(("Error %d formatting job_identifier_list as -jid\n", ret));
713-         sprintf(str, MSG_LIST_ERRORFORMATINGJOBIDENTIFIERLISTASJID);
714+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGJOBIDENTIFIERLISTASJID);
715          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
716          return answer;
717       }
718@@ -277,7 +277,7 @@
719       cp = sge_unparse_mail_options(ul);
720       if (!cp) {
721          DPRINTF(("Error unparsing mail options\n"));
722-         sprintf(str, MSG_PARSE_ERRORUNPARSINGMAILOPTIONS);
723+         sprintf(str, "%s", MSG_PARSE_ERRORUNPARSINGMAILOPTIONS);
724          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
725          return answer;
726       }
727@@ -318,7 +318,7 @@
728             FLG_NO_DELIS_STRINGS);
729          if (ret) {
730             DPRINTF(("Error %d formatting mail list as -M\n", ret));
731-            sprintf(str,  MSG_LIST_ERRORFORMATTINGMAILLISTASM );
732+            sprintf(str, "%s", MSG_LIST_ERRORFORMATTINGMAILLISTASM );
733             answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
734             return answer;
735          }
736@@ -363,13 +363,13 @@
737 
738       prty = ul - BASE_PRIORITY;
739       if (prty > 1024) {
740-         sprintf(str, MSG_PROC_INVALIDPROIRITYMUSTBELESSTHAN1025);
741+         sprintf(str, "%s", MSG_PROC_INVALIDPROIRITYMUSTBELESSTHAN1025);
742          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
743          DEXIT;
744          return answer;
745       }
746       if (prty < -1023) {
747-         sprintf(str, MSG_PROC_INVALIDPRIORITYMUSTBEGREATERTHANMINUS1024);
748+         sprintf(str, "%s", MSG_PROC_INVALIDPRIORITYMUSTBEGREATERTHANMINUS1024);
749          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
750          DEXIT;
751          return answer;
752@@ -403,7 +403,7 @@
753          FLG_NO_DELIS_STRINGS);
754       if (ret) {
755          DPRINTF(("Error %d formatting hard_queue_list as -q\n", ret));
756-         sprintf(str, MSG_LIST_ERRORFORMATINGHARDQUEUELISTASQ);
757+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGHARDQUEUELISTASQ);
758          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
759          return answer;
760       }
761@@ -420,7 +420,7 @@
762          FLG_NO_DELIS_STRINGS);
763       if (ret) {
764          DPRINTF(("Error %d formatting soft_queue_list as -q\n", ret));
765-         sprintf(str, MSG_LIST_ERRORFORMATINGSOFTQUEUELISTASQ);
766+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGSOFTQUEUELISTASQ);
767          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
768          return answer;
769       }
770@@ -488,7 +488,7 @@
771          FLG_NO_DELIS_STRINGS);
772       if (ret) {
773          DPRINTF(("Error %d formatting environment list as -v\n", ret));
774-         sprintf(str, MSG_LIST_ERRORFORMATINGENVIRONMENTLISTASV);
775+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGENVIRONMENTLISTASV);
776          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
777          return answer;
778       }
779@@ -527,7 +527,7 @@
780          FLG_NO_DELIS_STRINGS);
781       if (ret) {
782          DPRINTF(("Error %d formatting job arguments\n", ret));
783-         sprintf(str, MSG_LIST_ERRORFORMATINGJOBARGUMENTS);
784+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGJOBARGUMENTS);
785          answer_list_add(&answer, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
786          return answer;
787       }
788@@ -708,7 +708,7 @@
789       ret = centry_list_append_to_string(lp, str, sizeof(str) - 1);
790       if (ret) {
791          DPRINTF(("Error %d formatting hard_resource_list as -l\n", ret));
792-         sprintf(str, MSG_LIST_ERRORFORMATINGHARDRESOURCELISTASL);
793+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGHARDRESOURCELISTASL);
794          answer_list_add(alpp, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
795          return ret;
796       }
797@@ -751,7 +751,7 @@
798       sge_dstring_append(&string_buffer, " ");
799       if (!(lp = lGetList(job, JB_pe_range))) {
800          DPRINTF(("Job has parallel environment with no ranges\n"));
801-         sprintf(str, MSG_JOB_JOBHASPEWITHNORANGES);
802+         sprintf(str, "%s", MSG_JOB_JOBHASPEWITHNORANGES);
803          answer_list_add(alpp, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
804          sge_dstring_free(&string_buffer);
805          DEXIT;
806@@ -767,7 +767,7 @@
807       }
808       if (ret) {
809          DPRINTF(("Error %d formatting ranges in -pe\n", ret));
810-         sprintf(str, MSG_LIST_ERRORFORMATINGRANGESINPE);
811+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGRANGESINPE);
812          answer_list_add(alpp, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
813          sge_dstring_free(&string_buffer);
814          DEXIT;
815@@ -805,7 +805,7 @@
816       ret = uni_print_list(NULL, str, sizeof(str) - 1, lp, fields, delis, FLG_NO_DELIS_STRINGS);
817       if (ret) {
818          DPRINTF(("Error %d formatting path_list\n", ret));
819-         sprintf(str, MSG_LIST_ERRORFORMATINGPATHLIST);
820+         sprintf(str, "%s", MSG_LIST_ERRORFORMATINGPATHLIST);
821          answer_list_add(alpp, str, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
822          return ret;
823       }
824diff -Nur source/daemons/execd/execd.c ../../gridengine-6.2u4/source/daemons/execd/execd.c
825--- source/daemons/execd/execd.c        2009-12-01 18:52:40.000000000 +0000
826+++ ../../gridengine-6.2u4/source/daemons/execd/execd.c 2010-03-05 12:29:33.422550840 +0000
827@@ -231,8 +231,8 @@
828          if (printed_points != 0) {
829             printf("\n");
830          }
831-         CRITICAL((SGE_EVENT, MSG_COM_ERROR));
832-         SGE_EXIT((void**)&ctx, 1);
833+         CRITICAL((SGE_EVENT, "%s", MSG_COM_ERROR));
834+         SGE_EXIT((void**)&ctx, 1);
835       }
836       if (cl_com_get_handle(prognames[EXECD],1) == NULL) {
837         /* sleep when prepare_enroll() failed */
838@@ -256,7 +256,7 @@
839     */
840    ret_val = cl_com_set_status_func(sge_execd_application_status);
841    if (ret_val != CL_RETVAL_OK) {
842-      ERROR((SGE_EVENT, cl_get_error_text(ret_val)) );
843+      ERROR((SGE_EVENT, "%s", cl_get_error_text(ret_val)) );
844    }
845 
846    /* test connection */
847@@ -266,8 +266,8 @@
848                                                (char *)ctx->get_master(ctx, true),
849                                                (char*)prognames[QMASTER], 1, &status);
850       if (ret_val != CL_RETVAL_OK) {
851-         ERROR((SGE_EVENT, cl_get_error_text(ret_val)));
852-         ERROR((SGE_EVENT, MSG_CONF_NOCONFBG));
853+         ERROR((SGE_EVENT, "%s", cl_get_error_text(ret_val)));
854+         ERROR((SGE_EVENT, "%s", MSG_CONF_NOCONFBG));
855       }
856       cl_com_free_sirm_message(&status);
857    }
858@@ -333,15 +333,15 @@
859     * Log a warning message if execd hasn't been started by a superuser
860     */
861    if (!sge_is_start_user_superuser()) {
862-      WARNING((SGE_EVENT, MSG_SWITCH_USER_NOT_ROOT));
863+      WARNING((SGE_EVENT, "%s", MSG_SWITCH_USER_NOT_ROOT));
864    }   
865 
866 #ifdef COMPILE_DC
867    if (ptf_init()) {
868-      CRITICAL((SGE_EVENT, MSG_EXECD_NOSTARTPTF));
869+      CRITICAL((SGE_EVENT, "%s", MSG_EXECD_NOSTARTPTF));
870       SGE_EXIT((void**)&ctx, 1);
871    }
872-   INFO((SGE_EVENT, MSG_EXECD_STARTPDCANDPTF));
873+   INFO((SGE_EVENT, "%s", MSG_EXECD_STARTPDCANDPTF));
874 #endif
875 
876    master_job_list = object_type_get_master_list(SGE_TYPE_JOB);
877@@ -641,7 +641,7 @@
878    }
879   
880    if(lGetNumberOfElem(*ppcmdline)) {
881-      sprintf(str, MSG_PARSE_TOOMANYARGS);
882+      sprintf(str, "%s", MSG_PARSE_TOOMANYARGS);
883       if(!usageshowed)
884          sge_usage(EXECD, stderr);
885       answer_list_add(&alp, str, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
886diff -Nur source/daemons/execd/execd_job_exec.c ../../gridengine-6.2u4/source/daemons/execd/execd_job_exec.c
887--- source/daemons/execd/execd_job_exec.c       2009-12-01 18:52:40.000000000 +0000
888+++ ../../gridengine-6.2u4/source/daemons/execd/execd_job_exec.c        2010-03-04 14:11:44.047050883 +0000
889@@ -97,7 +97,7 @@
890 
891    /* ------- featureset */
892    if (unpackint(&(aMsg->buf), &feature_set)) {
893-      ERROR((SGE_EVENT, MSG_COM_UNPACKFEATURESET));
894+      ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKFEATURESET));
895       DRETURN(0);
896    }
897 
898@@ -115,7 +115,7 @@
899       
900       if (!object_unpack_elem_verify(&answer_list, &(aMsg->buf), &job, JB_Type)) {
901          answer_list_output(&answer_list);
902-         ERROR((SGE_EVENT, MSG_COM_UNPACKJOB));
903+         ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKJOB));
904          DRETURN(0);
905       }
906 
907@@ -159,7 +159,7 @@
908 
909       if (!object_unpack_elem_verify(&answer_list, &(aMsg->buf), &petrep, PETR_Type)) {
910          answer_list_output(&answer_list);
911-         ERROR((SGE_EVENT, MSG_COM_UNPACKJOB));
912+         ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKJOB));
913          DRETURN(0);
914       }
915 
916@@ -196,7 +196,7 @@
917 
918    /* ------- featureset */
919    if (unpackint(&(aMsg->buf), &feature_set)) {
920-      ERROR((SGE_EVENT, MSG_COM_UNPACKFEATURESET));
921+      ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKFEATURESET));
922       DRETURN(0);
923    }
924 
925@@ -209,7 +209,7 @@
926    /* ------- job */
927    if (!object_unpack_elem_verify(&answer_list, &(aMsg->buf), &jelem, JB_Type)) {
928       answer_list_output(&answer_list);
929-      ERROR((SGE_EVENT, MSG_COM_UNPACKJOB));
930+      ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKJOB));
931       DRETURN(0);
932    }
933    lFreeList(&answer_list);
934diff -Nur source/daemons/execd/execd_ticket.c ../../gridengine-6.2u4/source/daemons/execd/execd_ticket.c
935--- source/daemons/execd/execd_ticket.c 2009-12-01 18:52:40.000000000 +0000
936+++ ../../gridengine-6.2u4/source/daemons/execd/execd_ticket.c  2010-03-04 14:11:44.047050883 +0000
937@@ -66,7 +66,7 @@
938 
939       if (unpackint(&(aMsg->buf), &jobid) || unpackint(&(aMsg->buf), &jataskid)
940           || unpackdouble(&(aMsg->buf), &ticket)) {
941-         ERROR((SGE_EVENT, MSG_JOB_TICKETFORMAT));
942+         ERROR((SGE_EVENT, "%s", MSG_JOB_TICKETFORMAT));
943          DRETURN(0);
944       }
945       DPRINTF(("got %lf new tickets for job "sge_u32"."sge_u32"\n", ticket, jobid, jataskid));
946diff -Nur source/daemons/execd/exec_job.c ../../gridengine-6.2u4/source/daemons/execd/exec_job.c
947--- source/daemons/execd/exec_job.c     2009-12-01 18:52:40.000000000 +0000
948+++ ../../gridengine-6.2u4/source/daemons/execd/exec_job.c      2010-03-04 14:11:44.047050883 +0000
949@@ -340,14 +340,14 @@
950       if (!(used_slots=qinstance_slots_used(master_q))) {
951          if (!(sge_make_tmpdir(master_q, job_id, ja_task_id,
952              pw->pw_uid, pw->pw_gid, tmpdir))) {
953-            snprintf(err_str, err_length, MSG_SYSTEM_CANTMAKETMPDIR);
954+            snprintf(err_str,err_length, "%s", MSG_SYSTEM_CANTMAKETMPDIR);
955             DEXIT;
956             return -2;
957          }
958       } else {
959          SGE_STRUCT_STAT statbuf;
960          if(!(sge_get_tmpdir(master_q, job_id, ja_task_id, tmpdir))) {
961-            snprintf(err_str, err_length, MSG_SYSTEM_CANTGETTMPDIR);
962+            snprintf(err_str,err_length, "%s", MSG_SYSTEM_CANTGETTMPDIR);
963             DEXIT;
964             return -2;
965          }
966@@ -820,7 +820,7 @@
967 
968          if (!sup_groups_in_proc()) {
969             lFreeList(&environmentList);
970-            snprintf(err_str, err_length, MSG_EXECD_NOSGID);
971+            snprintf(err_str,err_length, "%s", MSG_EXECD_NOSGID);
972             FCLOSE(fp);
973             DEXIT;
974             return(-2);
975@@ -836,7 +836,7 @@
976          FREE(gid_range);
977          if (rlp == NULL) {
978              lFreeList(&alp);
979-             snprintf(err_str, err_length, MSG_EXECD_NOPARSEGIDRANGE);
980+             snprintf(err_str,err_length, "%s", MSG_EXECD_NOPARSEGIDRANGE);
981              lFreeList(&environmentList);
982              FCLOSE(fp);
983              DEXIT;
984@@ -849,7 +849,7 @@
985          while (addgrpid_already_in_use(last_addgrpid)) {
986             last_addgrpid = get_next_addgrpid (rlp, last_addgrpid);
987             if (temp_id == last_addgrpid) {
988-               snprintf(err_str, err_length, MSG_EXECD_NOADDGID);
989+               snprintf(err_str,err_length, "%s", MSG_EXECD_NOADDGID);
990                lFreeList(&environmentList);
991                FCLOSE(fp);
992                DEXIT;
993@@ -1215,7 +1215,7 @@
994             fprintf(fp, "exec_file=%s\n", xterm);
995             DPRINTF(("exec_file=%s\n", xterm));
996          } else {
997-            snprintf(err_str, err_length, MSG_EXECD_NOXTERM);
998+            snprintf(err_str,err_length, "%s", MSG_EXECD_NOXTERM);
999             FCLOSE(fp);
1000             lFreeList(&environmentList);
1001             DEXIT;
1002@@ -1286,7 +1286,7 @@
1003              */
1004             const char *error_string = lGetString(lFirst(answer_list), AN_text);
1005             if(error_string != NULL) {
1006-               snprintf(err_str, err_length, error_string);
1007+               snprintf(err_str,err_length, "%s", error_string);
1008             }
1009             lFreeList(&answer_list);
1010             lFreeList(&environmentList);
1011@@ -1531,7 +1531,7 @@
1012       set_token_cmd = mconf_get_set_token_cmd();
1013       if (!set_token_cmd ||
1014           !strlen(set_token_cmd) || !mconf_get_token_extend_time()) {
1015-         snprintf(err_str, err_length, MSG_EXECD_AFSCONFINCOMPLETE);
1016+         snprintf(err_str,err_length, "%s", MSG_EXECD_AFSCONFINCOMPLETE);
1017          FREE(pag_cmd);
1018          FREE(shepherd_cmd);
1019          DEXIT;
1020@@ -1551,7 +1551,7 @@
1021       
1022       cp = lGetString(jep, JB_tgt);
1023       if (!cp || !(len = strlen(cp))) {
1024-         snprintf(err_str, err_length, MSG_EXECD_TOKENZERO);
1025+         snprintf(err_str,err_length, "%s", MSG_EXECD_TOKENZERO);
1026          FREE(pag_cmd);
1027          FREE(shepherd_cmd);
1028          DEXIT;
1029@@ -1774,7 +1774,7 @@
1030    }
1031 
1032 FCLOSE_ERROR:
1033-   CRITICAL((SGE_EVENT, MSG_EXECD_NOSTARTSHEPHERD));
1034+   CRITICAL((SGE_EVENT, "%s", MSG_EXECD_NOSTARTSHEPHERD));
1035 
1036    exit(1);
1037 
1038diff -Nur source/daemons/execd/job_report_execd.c ../../gridengine-6.2u4/source/daemons/execd/job_report_execd.c
1039--- source/daemons/execd/job_report_execd.c     2009-12-01 18:52:40.000000000 +0000
1040+++ ../../gridengine-6.2u4/source/daemons/execd/job_report_execd.c      2010-03-04 14:11:44.047050883 +0000
1041@@ -103,7 +103,7 @@
1042       jr_list = lCreateList("job report list", JR_Type);
1043   
1044    if (jr_list == NULL || (jr=lCreateElem(JR_Type)) == NULL) {
1045-      ERROR((SGE_EVENT, MSG_JOB_TYPEMALLOC)); 
1046+      ERROR((SGE_EVENT, "%s", MSG_JOB_TYPEMALLOC));
1047       DRETURN(NULL);
1048    }
1049 
1050@@ -277,7 +277,7 @@
1051    while (pb_unused(&(aMsg->buf)) > 0) {
1052 
1053       if (cull_unpack_elem(&(aMsg->buf), &ack, NULL)) {
1054-         ERROR((SGE_EVENT, MSG_COM_UNPACKJOB));
1055+         ERROR((SGE_EVENT, "%s", MSG_COM_UNPACKJOB));
1056          DRETURN(0);
1057       }
1058 
1059@@ -354,7 +354,7 @@
1060             break;
1061 
1062          default:
1063-            ERROR((SGE_EVENT, MSG_COM_ACK_UNKNOWN1));
1064+            ERROR((SGE_EVENT, "%s", MSG_COM_ACK_UNKNOWN1));
1065             break;
1066       }
1067 
1068diff -Nur source/daemons/execd/load_avg.c ../../gridengine-6.2u4/source/daemons/execd/load_avg.c
1069--- source/daemons/execd/load_avg.c     2009-12-01 18:52:40.000000000 +0000
1070+++ ../../gridengine-6.2u4/source/daemons/execd/load_avg.c      2010-03-04 14:11:44.047050883 +0000
1071@@ -529,7 +529,7 @@
1072 
1073       now = sge_get_gmt();
1074       if (now >= next_log) {
1075-         WARNING((SGE_EVENT, MSG_SGETEXT_NO_LOAD));     
1076+         WARNING((SGE_EVENT, "%s", MSG_SGETEXT_NO_LOAD));
1077          next_log = now + 7200;
1078       }
1079    } else if (loads == -2) {
1080@@ -584,7 +584,7 @@
1081    if (sge_loadmem(&mem_info)) {
1082       static int mem_fail = 0;
1083       if (!mem_fail) {
1084-         ERROR((SGE_EVENT, MSG_LOAD_NOMEMINDICES));
1085+         ERROR((SGE_EVENT, "%s", MSG_LOAD_NOMEMINDICES));
1086          mem_fail =1;
1087       }
1088       DRETURN(1);
1089@@ -725,7 +725,7 @@
1090 
1091          u_long32 now = sge_get_gmt();
1092          if (now >= next_log2) {
1093-            WARNING((SGE_EVENT, MSG_SGETEXT_NO_LOAD));
1094+            WARNING((SGE_EVENT, "%s", MSG_SGETEXT_NO_LOAD));
1095             next_log2 = now + 7200;
1096          }
1097       }
1098diff -Nur source/daemons/execd/ptf.c ../../gridengine-6.2u4/source/daemons/execd/ptf.c
1099--- source/daemons/execd/ptf.c  2009-12-01 18:52:40.000000000 +0000
1100+++ ../../gridengine-6.2u4/source/daemons/execd/ptf.c   2010-03-04 14:11:44.051050726 +0000
1101@@ -825,7 +825,7 @@
1102 #endif
1103 
1104    if (!where) {
1105-      CRITICAL((SGE_EVENT, MSG_WHERE_FAILEDTOBUILDWHERECONDITION));
1106+      CRITICAL((SGE_EVENT, "%s", MSG_WHERE_FAILEDTOBUILDWHERECONDITION));
1107       DRETURN(NULL);
1108    }
1109 
1110diff -Nur source/daemons/execd/reaper_execd.c ../../gridengine-6.2u4/source/daemons/execd/reaper_execd.c
1111--- source/daemons/execd/reaper_execd.c 2009-12-01 18:52:40.000000000 +0000
1112+++ ../../gridengine-6.2u4/source/daemons/execd/reaper_execd.c  2010-03-04 14:11:44.055050077 +0000
1113@@ -378,7 +378,7 @@
1114    sge_dstring_init(&id_dstring, id_buffer, MAX_STRING_SIZE);
1115 
1116    if (!jr) {
1117-      CRITICAL((SGE_EVENT, MSG_JOB_CLEANUPJOBCALLEDWITHINVALIDPARAMETERS));
1118+      CRITICAL((SGE_EVENT, "%s", MSG_JOB_CLEANUPJOBCALLEDWITHINVALIDPARAMETERS));
1119       DEXIT;
1120       return -1;
1121    }
1122@@ -463,7 +463,7 @@
1123     
1124       sprintf(error, MSG_STATUS_ABNORMALTERMINATIONOFSHEPHERDFORJOBXY_S,
1125               job_get_id_string(job_id, ja_task_id, pe_task_id, &id_dstring));
1126-      ERROR((SGE_EVENT, error));   
1127+      ERROR((SGE_EVENT, "%s", error));
1128 
1129       /*
1130        * failed = ESSTATE_SHEPHERD_EXIT or exit status of shepherd if we are
1131@@ -477,7 +477,7 @@
1132       if (fscanf_count != 1) {
1133          sprintf(error, MSG_STATUS_ABNORMALTERMINATIONFOSHEPHERDFORJOBXYEXITSTATEFILEISEMPTY_S,
1134                  job_get_id_string(job_id, ja_task_id, pe_task_id, &id_dstring));
1135-         ERROR((SGE_EVENT, error));
1136+         ERROR((SGE_EVENT, "%s", error));
1137          /*
1138           * If shepherd died through signal assume job was started, else
1139           * trust exit status
1140@@ -505,9 +505,9 @@
1141 
1142    if (failed) {
1143       if (failed == ESSTATE_DIED_THRU_SIGNAL)
1144-         sprintf(error, MSG_SHEPHERD_DIEDTHROUGHSIGNAL);
1145+         sprintf(error, "%s", MSG_SHEPHERD_DIEDTHROUGHSIGNAL);
1146       else if (failed == ESSTATE_NO_PID)
1147-         sprintf(error, MSG_SHEPHERD_NOPIDFILE);
1148+         sprintf(error, "%s", MSG_SHEPHERD_NOPIDFILE);
1149       else
1150          sprintf(error, MSG_SHEPHERD_EXITEDWISSTATUS_IS, failed,
1151                  get_sstate_description(failed));
1152@@ -557,7 +557,7 @@
1153             job_get_id_string(job_id, ja_task_id, pe_task_id, &id_dstring));
1154       }
1155       
1156-      ERROR((SGE_EVENT, error));
1157+      ERROR((SGE_EVENT, "%s", error));
1158       
1159       if (!failed) {
1160          failed = SSTATE_FAILURE_AFTER_JOB;
1161@@ -592,7 +592,7 @@
1162          if (!failed) {
1163             failed = SSTATE_FAILURE_AFTER_JOB;
1164             if (!*error)
1165-               sprintf(error, MSG_JOB_CANTREADUSEDRESOURCESFORJOB);
1166+               sprintf(error, "%s", MSG_JOB_CANTREADUSEDRESOURCESFORJOB);
1167          }
1168       }
1169    }
1170@@ -1165,7 +1165,7 @@
1171    DENTER(TOP_LAYER, "clean_up_old_jobs");
1172 
1173    if (startup) {
1174-      INFO((SGE_EVENT, MSG_SHEPHERD_CKECKINGFOROLDJOBS));
1175+      INFO((SGE_EVENT, "%s", MSG_SHEPHERD_CKECKINGFOROLDJOBS));
1176    }
1177 
1178    /*
1179@@ -1190,9 +1190,9 @@
1180        !lost_children) {
1181       if (lost_children) {
1182          if (startup) {
1183-            INFO((SGE_EVENT, MSG_SHEPHERD_NOOLDJOBSATSTARTUP));
1184+            INFO((SGE_EVENT, "%s", MSG_SHEPHERD_NOOLDJOBSATSTARTUP));
1185          } else {
1186-            INFO((SGE_EVENT, MSG_SHEPHERD_NOMOREOLDJOBSAFTERSTARTUP));
1187+            INFO((SGE_EVENT, "%s", MSG_SHEPHERD_NOMOREOLDJOBSAFTERSTARTUP));
1188          }
1189          /*
1190           * Now setting lost_children to 0 which disables further pid checking
1191@@ -1208,7 +1208,7 @@
1192    /* Get pids of running jobs. So we can look for running shepherds. */
1193    npids = sge_get_pids(pids, 10000, SGE_SHEPHERD, PSCMD);
1194    if (npids == -1) {
1195-      ERROR((SGE_EVENT, MSG_SHEPHERD_CANTGETPROCESSESFROMPSCOMMAND));
1196+      ERROR((SGE_EVENT, "%s", MSG_SHEPHERD_CANTGETPROCESSESFROMPSCOMMAND));
1197       DEXIT;
1198       return -1;
1199    }
1200@@ -1384,7 +1384,7 @@
1201       sprintf(err_str, MSG_SHEPHERD_SHEPHERDFORJOBXHASPIDYANDISNOTALIVE_SU, dir, sge_u32c(pid));
1202    }
1203    if (startup) {
1204-      INFO((SGE_EVENT, err_str));
1205+      INFO((SGE_EVENT, "%s", err_str));
1206       modify_queue_limits_flag_for_job(ctx->get_qualified_hostname(ctx), jep, true);
1207    } else {
1208       DPRINTF((err_str));
1209diff -Nur source/daemons/execd/setup_execd.c ../../gridengine-6.2u4/source/daemons/execd/setup_execd.c
1210--- source/daemons/execd/setup_execd.c  2009-12-01 18:52:40.000000000 +0000
1211+++ ../../gridengine-6.2u4/source/daemons/execd/setup_execd.c   2010-03-04 14:11:44.055050077 +0000
1212@@ -86,20 +86,20 @@
1213    ** switch to admin user
1214    */
1215    if (sge_set_admin_username(admin_user, err_str)) {
1216-      CRITICAL((SGE_EVENT, err_str));
1217+      CRITICAL((SGE_EVENT, "%s", err_str));
1218       /* TODO: remove */
1219       SGE_EXIT(NULL, 1);
1220    }
1221 
1222    if (sge_switch2admin_user()) {
1223-      CRITICAL((SGE_EVENT, MSG_ERROR_CANTSWITCHTOADMINUSER));
1224+      CRITICAL((SGE_EVENT, "%s", MSG_ERROR_CANTSWITCHTOADMINUSER));
1225       /* TODO: remove */
1226       SGE_EXIT(NULL, 1);
1227    }
1228 
1229    while (gdi2_wait_for_conf(ctx, &Execd_Config_List)) {
1230       if (allowed_get_conf_errors-- <= 0) {
1231-         CRITICAL((SGE_EVENT, MSG_EXECD_CANT_GET_CONFIGURATION_EXIT));
1232+         CRITICAL((SGE_EVENT, "%s", MSG_EXECD_CANT_GET_CONFIGURATION_EXIT));
1233          /* TODO: remove */
1234          SGE_EXIT(NULL, 1);
1235       }
1236diff -Nur source/daemons/qmaster/configuration_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/configuration_qmaster.c
1237--- source/daemons/qmaster/configuration_qmaster.c      2009-12-01 18:52:40.000000000 +0000
1238+++ ../../gridengine-6.2u4/source/daemons/qmaster/configuration_qmaster.c       2010-03-04 14:11:44.083051674 +0000
1239@@ -161,7 +161,7 @@
1240    }
1241 
1242    if ((global = sge_get_configuration_for_host(SGE_GLOBAL_NAME)) == NULL) {
1243-      ERROR((SGE_EVENT, MSG_CONFIG_NOGLOBAL));
1244+      ERROR((SGE_EVENT, "%s", MSG_CONFIG_NOGLOBAL));
1245       DRETURN(-1);
1246    }
1247 
1248@@ -364,7 +364,7 @@
1249       }
1250       
1251       if ((global = sge_get_configuration_for_host(SGE_GLOBAL_NAME)) == NULL) {
1252-         ERROR((SGE_EVENT, MSG_CONFIG_NOGLOBAL));
1253+         ERROR((SGE_EVENT, "%s", MSG_CONFIG_NOGLOBAL));
1254       }
1255             
1256       if (merge_configuration(&answer_list, progid, cell_root, global, local, NULL) != 0) {
1257diff -Nur source/daemons/qmaster/job_exit.c ../../gridengine-6.2u4/source/daemons/qmaster/job_exit.c
1258--- source/daemons/qmaster/job_exit.c   2009-12-01 18:52:40.000000000 +0000
1259+++ ../../gridengine-6.2u4/source/daemons/qmaster/job_exit.c    2010-03-04 14:11:44.067049984 +0000
1260@@ -327,7 +327,7 @@
1261 
1262                   sge_dstring_sprintf(&error, MSG_LOG_QERRORBYJOBHOST_SUS, lGetString(qinstance, QU_qname), sge_u32c(jobid), host);
1263                   qinstance_message_add(qinstance, QI_ERROR, sge_dstring_get_string(&error));
1264-                  ERROR((SGE_EVENT, sge_dstring_get_string(&error)));
1265+                  ERROR((SGE_EVENT, "%s", sge_dstring_get_string(&error)));
1266                   sge_event_spool(ctx, &answer_list, 0, sgeE_QINSTANCE_MOD,
1267                                   0, 0, lGetString(qinstance, QU_qname),
1268                                   lGetHost(qinstance, QU_qhostname), NULL,
1269@@ -351,7 +351,7 @@
1270          /* general error -> this queue cant run any job */
1271          sge_qmaster_qinstance_state_set_error(queueep, true);
1272          qinstance_message_add(queueep, QI_ERROR, sge_dstring_get_string(&error));
1273-         ERROR((SGE_EVENT, sge_dstring_get_string(&error)));     
1274+         ERROR((SGE_EVENT, "%s", sge_dstring_get_string(&error)));
1275          sge_event_spool(ctx, &answer_list, 0, sgeE_QINSTANCE_MOD,
1276                          0, 0, lGetString(queueep, QU_qname),
1277                          lGetHost(queueep, QU_qhostname), NULL,
1278diff -Nur source/daemons/qmaster/reschedule.c ../../gridengine-6.2u4/source/daemons/qmaster/reschedule.c
1279--- source/daemons/qmaster/reschedule.c 2009-12-01 18:52:40.000000000 +0000
1280+++ ../../gridengine-6.2u4/source/daemons/qmaster/reschedule.c  2010-03-04 14:11:44.067049984 +0000
1281@@ -332,10 +332,10 @@
1282       if (job_is_array(jep)) {
1283          sprintf(mail_ids, sge_U32CFormat"."sge_U32CFormat,
1284             sge_u32c(job_number), sge_u32c(task_number));
1285-         sprintf(mail_type, MSG_RU_TYPEJOBARRAY);
1286+         sprintf(mail_type, "%s", MSG_RU_TYPEJOBARRAY);
1287       } else {
1288          sprintf(mail_ids, sge_U32CFormat, sge_u32c(job_number));
1289-         sprintf(mail_type, MSG_RU_TYPEJOB);
1290+         sprintf(mail_type, "%s", MSG_RU_TYPEJOB);
1291       }
1292 
1293       granted_qs = lGetList(this_jatep, JAT_granted_destin_identifier_list);
1294@@ -530,9 +530,9 @@
1295 
1296          mail_options = lGetUlong(jep, JB_mail_options);
1297          if (force) {
1298-            sprintf(mail_action, MSG_RU_FORCEDR);
1299+            sprintf(mail_action, "%s", MSG_RU_FORCEDR);
1300          } else {
1301-            sprintf(mail_action, MSG_RU_PUSHEDR);
1302+            sprintf(mail_action, "%s", MSG_RU_PUSHEDR);
1303          }
1304          if (VALID(MAIL_AT_ABORT, mail_options)) {
1305             lList *mail_users;
1306diff -Nur source/daemons/qmaster/setup_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/setup_qmaster.c
1307--- source/daemons/qmaster/setup_qmaster.c      2009-12-01 18:52:40.000000000 +0000
1308+++ ../../gridengine-6.2u4/source/daemons/qmaster/setup_qmaster.c       2010-03-04 14:11:44.087050032 +0000
1309@@ -169,7 +169,7 @@
1310 
1311    process_cmdline(anArgv);
1312 
1313-   INFO((SGE_EVENT, MSG_STARTUP_BEGINWITHSTARTUP));
1314+   INFO((SGE_EVENT, "%s", MSG_STARTUP_BEGINWITHSTARTUP));
1315 
1316    qmaster_unlock(QMASTER_LOCK_FILE);
1317 
1318@@ -235,12 +235,12 @@
1319    if (switch_to_admin_user == true) {   
1320       char str[1024];
1321       if (sge_set_admin_username(admin_user, str) == -1) {
1322-         CRITICAL((SGE_EVENT, str));
1323+         CRITICAL((SGE_EVENT, "%s", str));
1324          SGE_EXIT((void**)ctx_ref, 1);
1325       }
1326 
1327       if (sge_switch2admin_user()) {
1328-         CRITICAL((SGE_EVENT, MSG_ERROR_CANTSWITCHTOADMINUSER));
1329+         CRITICAL((SGE_EVENT, "%s", MSG_ERROR_CANTSWITCHTOADMINUSER));
1330          SGE_EXIT((void**)ctx_ref, 1);
1331       }
1332    }
1333@@ -510,7 +510,7 @@
1334    }
1335 
1336    if(lGetNumberOfElem(*ppcmdline)) {
1337-      sprintf(str, MSG_PARSE_TOOMANYOPTIONS);
1338+      sprintf(str, "%s", MSG_PARSE_TOOMANYOPTIONS);
1339       if(!usageshowed)
1340          sge_usage(QMASTER, stderr);
1341       answer_list_add(&alp, str, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
1342@@ -547,7 +547,7 @@
1343    DENTER(TOP_LAYER, "qmaster_init");
1344 
1345    if (setup_qmaster(ctx)) {
1346-      CRITICAL((SGE_EVENT, MSG_STARTUP_SETUPFAILED));
1347+      CRITICAL((SGE_EVENT, "%s", MSG_STARTUP_SETUPFAILED));
1348       SGE_EXIT(NULL, 1);
1349    }
1350 
1351@@ -798,7 +798,7 @@
1352   
1353    if (anExitValue == 0) {
1354       if (qmaster_lock(QMASTER_LOCK_FILE) == -1) {
1355-         CRITICAL((SGE_EVENT, MSG_QMASTER_LOCKFILE_ALREADY_EXISTS));
1356+         CRITICAL((SGE_EVENT, "%s", MSG_QMASTER_LOCKFILE_ALREADY_EXISTS));
1357       }
1358    }
1359    sge_gdi2_shutdown(ctx_ref);
1360@@ -826,7 +826,7 @@
1361    if (first) {
1362       first = false;
1363    } else {
1364-      CRITICAL((SGE_EVENT, MSG_SETUP_SETUPMAYBECALLEDONLYATSTARTUP));
1365+      CRITICAL((SGE_EVENT, "%s", MSG_SETUP_SETUPMAYBECALLEDONLYATSTARTUP));
1366       DEXIT;
1367       return -1;
1368    }   
1369@@ -886,14 +886,14 @@
1370    if (!host_list_locate(*object_base[SGE_TYPE_EXECHOST].list, SGE_TEMPLATE_NAME)) {
1371       /* add an exec host "template" */
1372       if (sge_add_host_of_type(ctx, SGE_TEMPLATE_NAME, SGE_EH_LIST, &monitor))
1373-         ERROR((SGE_EVENT, MSG_CONFIG_ADDINGHOSTTEMPLATETOEXECHOSTLIST));
1374+         ERROR((SGE_EVENT, "%s", MSG_CONFIG_ADDINGHOSTTEMPLATETOEXECHOSTLIST));
1375    }
1376 
1377    /* add host "global" to Master_Exechost_List as an exec host */
1378    if (!host_list_locate(*object_base[SGE_TYPE_EXECHOST].list, SGE_GLOBAL_NAME)) {
1379       /* add an exec host "global" */
1380       if (sge_add_host_of_type(ctx, SGE_GLOBAL_NAME, SGE_EH_LIST, &monitor))
1381-         ERROR((SGE_EVENT, MSG_CONFIG_ADDINGHOSTGLOBALTOEXECHOSTLIST));
1382+         ERROR((SGE_EVENT, "%s", MSG_CONFIG_ADDINGHOSTGLOBALTOEXECHOSTLIST));
1383    }
1384 
1385    /* add qmaster host to Master_Adminhost_List as an administrativ host */
1386@@ -911,7 +911,7 @@
1387 
1388       if (!spool_write_object(&answer_list, spooling_context, ep, "root", SGE_TYPE_MANAGER, job_spooling)) {
1389          answer_list_output(&answer_list);
1390-         CRITICAL((SGE_EVENT, MSG_CONFIG_CANTWRITEMANAGERLIST));
1391+         CRITICAL((SGE_EVENT, "%s", MSG_CONFIG_CANTWRITEMANAGERLIST));
1392          DRETURN(-1);
1393       }
1394    }
1395@@ -931,7 +931,7 @@
1396 
1397       if (!spool_write_object(&answer_list, spooling_context, ep, "root", SGE_TYPE_OPERATOR, job_spooling)) {
1398          answer_list_output(&answer_list);
1399-         CRITICAL((SGE_EVENT, MSG_CONFIG_CANTWRITEOPERATORLIST));
1400+         CRITICAL((SGE_EVENT, "%s", MSG_CONFIG_CANTWRITEOPERATORLIST));
1401          DEXIT;
1402          return -1;
1403       }
1404diff -Nur source/daemons/qmaster/sge_c_gdi.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_c_gdi.c
1405--- source/daemons/qmaster/sge_c_gdi.c  2009-12-01 18:52:40.000000000 +0000
1406+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_c_gdi.c   2010-03-04 14:11:44.063051117 +0000
1407@@ -320,7 +320,7 @@
1408          sge_gdi_packet_pack_task(packet, task, answer_list, pb);
1409          break;
1410       default:
1411-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_UNKNOWNOP));
1412+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_UNKNOWNOP));
1413          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP,
1414                          ANSWER_QUALITY_ERROR);
1415          sge_gdi_packet_pack_task(packet, task, answer_list, pb);
1416@@ -357,7 +357,7 @@
1417       case SGE_EV_LIST:
1418          task->data_list = sge_select_event_clients("", task->condition, task->enumeration);
1419          task->do_select_pack_simultaneous = false;
1420-         sprintf(SGE_EVENT, MSG_GDI_OKNL);
1421+         sprintf(SGE_EVENT, "%s", MSG_GDI_OKNL);
1422          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_END);
1423          DEXIT;
1424          return;
1425@@ -371,7 +371,7 @@
1426 
1427          task->data_list = lSelectHashPack("", conf, task->condition, task->enumeration, false, NULL);
1428          task->do_select_pack_simultaneous = false;
1429-         sprintf(SGE_EVENT, MSG_GDI_OKNL);
1430+         sprintf(SGE_EVENT, "%s", MSG_GDI_OKNL);
1431          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_END);
1432          lFreeList(&conf);
1433       }
1434@@ -386,7 +386,7 @@
1435          conf = sconf_get_config_list();
1436          task->data_list = lSelectHashPack("", conf, task->condition, task->enumeration, false, NULL);
1437          task->do_select_pack_simultaneous = false;
1438-         sprintf(SGE_EVENT, MSG_GDI_OKNL);
1439+         sprintf(SGE_EVENT, "%s", MSG_GDI_OKNL);
1440          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_END);
1441          lFreeList(&conf);
1442       }
1443@@ -404,7 +404,7 @@
1444             answer_list_add(&(task->answer_list),MSG_SGETEXT_JOBINFOMESSAGESOUTDATED,
1445                             STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
1446          } else if (ao == NULL || ao->list_type == SGE_TYPE_NONE) {
1447-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1448+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1449             answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1450          } else {
1451             lList *data_source = *object_type_get_master_list(ao->list_type);
1452@@ -420,7 +420,7 @@
1453                 * 05/21/2007 qualitiy was ANSWER_QUALITY_INFO but this results in "ok"
1454                 * messages on qconf side
1455                 */
1456-               sprintf(SGE_EVENT, MSG_GDI_OKNL);
1457+               sprintf(SGE_EVENT, "%s", MSG_GDI_OKNL);
1458                answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_END);
1459 
1460             } else {
1461@@ -567,7 +567,7 @@
1462 
1463                default:
1464                   if (!ao) {
1465-                     SGE_ADD_MSG_ID( sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1466+                     SGE_ADD_MSG_ID( sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1467                      answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1468                      break;
1469                   }
1470@@ -656,7 +656,7 @@
1471                               packet->user, packet->host);
1472             break;
1473          default:
1474-            SGE_ADD_MSG_ID( sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1475+            SGE_ADD_MSG_ID( sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1476             answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1477             break;
1478       }
1479@@ -733,7 +733,7 @@
1480                ar_del(ctx, ep, &(task->answer_list), object_base[SGE_TYPE_AR].list, packet->user, packet->host, monitor);
1481                break;
1482             default:
1483-               SGE_ADD_MSG_ID( sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1484+               SGE_ADD_MSG_ID( sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1485                answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1486                break;
1487          } /* switch target */
1488@@ -788,7 +788,7 @@
1489             break;
1490 
1491          default:
1492-            SGE_ADD_MSG_ID( sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1493+            SGE_ADD_MSG_ID( sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1494             answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1495             break;
1496       }
1497@@ -876,7 +876,7 @@
1498       }
1499    }
1500 
1501-  sprintf(SGE_EVENT, MSG_GDI_OKNL);
1502+  sprintf(SGE_EVENT, "%s", MSG_GDI_OKNL);
1503   answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_END);
1504   DEXIT;
1505   return;
1506@@ -895,7 +895,7 @@
1507          sge_gdi_do_permcheck(packet, task);
1508          break;
1509       default:
1510-         WARNING((SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1511+         WARNING((SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1512          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1513    }
1514    DRETURN_VOID;
1515@@ -941,7 +941,7 @@
1516          }
1517          break;
1518       default:
1519-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1520+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1521          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1522          break;
1523    }
1524@@ -1000,7 +1000,7 @@
1525        default:
1526             /* permissions should be checked in the functions. Here we don't
1527                know what is to do, so we don't know what permissions we need */
1528-            WARNING((SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1529+            WARNING((SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1530             answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1531          break;
1532    }
1533@@ -1231,13 +1231,13 @@
1534    DENTER(GDI_LAYER, "trigger_scheduler_monitoring");
1535 
1536    if (!manop_is_manager(packet->user)) {
1537-      WARNING((SGE_EVENT, MSG_COM_NOSCHEDMONPERMS));
1538+      WARNING((SGE_EVENT, "%s", MSG_COM_NOSCHEDMONPERMS));
1539       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_WARNING);
1540       DEXIT;
1541       return;
1542    }
1543    if (!sge_add_event_for_client(EV_ID_SCHEDD, 0, sgeE_SCHEDDMONITOR, 0, 0, NULL, NULL, NULL, NULL)) {
1544-      WARNING((SGE_EVENT, MSG_COM_NOSCHEDDREGMASTER));
1545+      WARNING((SGE_EVENT, "%s", MSG_COM_NOSCHEDDREGMASTER));
1546       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_EEXIST, ANSWER_QUALITY_WARNING);
1547       DEXIT;
1548       return;
1549@@ -1311,7 +1311,7 @@
1550                break;
1551             default:
1552                if (ao == NULL) {
1553-                  SGE_ADD_MSG_ID( sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1554+                  SGE_ADD_MSG_ID( sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1555                   answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1556                   break;
1557                }
1558@@ -1422,7 +1422,7 @@
1559       }
1560       break;
1561    default:
1562-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1563+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1564       answer_list_add(alpp, SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1565       DRETURN(1);
1566    }
1567@@ -1526,7 +1526,7 @@
1568       }
1569       break;
1570    default:
1571-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1572+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1573       answer_list_add(alpp, SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1574       DRETURN(1);
1575    }
1576@@ -1595,7 +1595,7 @@
1577       }
1578       break;
1579    default:
1580-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_SGETEXT_OPNOIMPFORTARGET));
1581+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_SGETEXT_OPNOIMPFORTARGET));
1582       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
1583       ret = false;
1584       return ret;
1585@@ -1711,7 +1711,7 @@
1586    if (!(new_obj = (add
1587          ? lCreateElem(object->type)
1588          : lCopyElem(old_obj)))) {
1589-      ERROR((SGE_EVENT, MSG_MEM_MALLOC));
1590+      ERROR((SGE_EVENT, "%s", MSG_MEM_MALLOC));
1591       answer_list_add(alpp, SGE_EVENT, STATUS_EEXIST, ANSWER_QUALITY_ERROR);
1592       DRETURN(STATUS_EEXIST);
1593    }
1594diff -Nur source/daemons/qmaster/sge_cqueue_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_cqueue_qmaster.c
1595--- source/daemons/qmaster/sge_cqueue_qmaster.c 2009-12-01 18:52:40.000000000 +0000
1596+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_cqueue_qmaster.c  2010-03-04 14:11:44.083051674 +0000
1597@@ -639,7 +639,7 @@
1598             const char *old_name = lGetString(cqueue, CQ_name);
1599 
1600             if (strcmp(old_name, name)) {
1601-               ERROR((SGE_EVENT, MSG_CQUEUE_NONAMECHANGE));
1602+               ERROR((SGE_EVENT, "%s", MSG_CQUEUE_NONAMECHANGE));
1603                answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX,
1604                                ANSWER_QUALITY_ERROR);
1605                ret = false;
1606@@ -927,7 +927,7 @@
1607              */
1608             for_each(qinstance, qinstances) {
1609                if (qinstance_slots_used(qinstance) > 0 || qinstance_slots_reserved(qinstance) > 0) {
1610-                  ERROR((SGE_EVENT, MSG_QINSTANCE_STILLJOBS));
1611+                  ERROR((SGE_EVENT, "%s", MSG_QINSTANCE_STILLJOBS));
1612                   answer_list_add(answer_list, SGE_EVENT, STATUS_EEXIST,
1613                                   ANSWER_QUALITY_ERROR);
1614                   do_del = false;
1615diff -Nur source/daemons/qmaster/sge_follow.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_follow.c
1616--- source/daemons/qmaster/sge_follow.c 2009-12-01 18:52:40.000000000 +0000
1617+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_follow.c  2010-03-04 14:11:44.067049984 +0000
1618@@ -196,7 +196,7 @@
1619 
1620       job_number=lGetUlong(ep, OR_job_number);
1621       if (!job_number) {
1622-         ERROR((SGE_EVENT, MSG_JOB_NOJOBID));
1623+         ERROR((SGE_EVENT, "%s", MSG_JOB_NOJOBID));
1624          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1625          DRETURN(-2);
1626       }
1627@@ -305,7 +305,7 @@
1628           *  find and check queue
1629           */
1630          if (!q_name) {
1631-            ERROR((SGE_EVENT, MSG_OBJ_NOQNAME));
1632+            ERROR((SGE_EVENT, "%s", MSG_OBJ_NOQNAME));
1633             answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1634             lFreeList(&gdil);
1635             lSetString(jatp, JAT_granted_pe, NULL);
1636@@ -531,7 +531,7 @@
1637 
1638          job_number = lGetUlong(ep, OR_job_number);
1639          if (job_number == 0) {
1640-            ERROR((SGE_EVENT, MSG_JOB_NOJOBID));
1641+            ERROR((SGE_EVENT, "%s", MSG_JOB_NOJOBID));
1642             answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1643             DRETURN(-2);
1644          }
1645@@ -636,7 +636,7 @@
1646 
1647          job_number=lGetUlong(ep, OR_job_number);
1648          if (!job_number) {
1649-            ERROR((SGE_EVENT, MSG_JOB_NOJOBID));
1650+            ERROR((SGE_EVENT, "%s", MSG_JOB_NOJOBID));
1651             answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1652             DRETURN(-2);
1653          }
1654@@ -756,7 +756,7 @@
1655 
1656          job_number=lGetUlong(ep, OR_job_number);
1657          if(!job_number) {
1658-            ERROR((SGE_EVENT, MSG_JOB_NOJOBID));
1659+            ERROR((SGE_EVENT, "%s", MSG_JOB_NOJOBID));
1660             answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1661             DEXIT;
1662             return -2;
1663@@ -958,7 +958,7 @@
1664 
1665       job_number=lGetUlong(ep, OR_job_number);
1666       if(!job_number) {
1667-         ERROR((SGE_EVENT, MSG_JOB_NOJOBID));
1668+         ERROR((SGE_EVENT, "%s", MSG_JOB_NOJOBID));
1669          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1670          DEXIT;
1671          return -2;
1672diff -Nur source/daemons/qmaster/sge_hgroup_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_hgroup_qmaster.c
1673--- source/daemons/qmaster/sge_hgroup_qmaster.c 2009-12-01 18:52:40.000000000 +0000
1674+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_hgroup_qmaster.c  2010-03-04 15:45:00.406563965 +0000
1675@@ -256,7 +256,7 @@
1676          } else {
1677             lListElem *aep;
1678             for_each(aep, *answer_list) {
1679-               ERROR((SGE_EVENT, lGetString(aep, AN_text)));
1680+               ERROR((SGE_EVENT,lGetString(aep,AN_text)));
1681             }
1682             ret = false;
1683          }
1684@@ -266,7 +266,7 @@
1685 
1686          /* Reject modify requests which try to change the groupname */
1687          if (sge_hostcmp(old_name, name)) {
1688-            ERROR((SGE_EVENT, MSG_HGRP_NONAMECHANGE));
1689+            ERROR((SGE_EVENT, "%s", MSG_HGRP_NONAMECHANGE));
1690             answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX,
1691                             ANSWER_QUALITY_ERROR);
1692             ret = false;
1693diff -Nur source/daemons/qmaster/sge_host_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_host_qmaster.c
1694--- source/daemons/qmaster/sge_host_qmaster.c   2009-12-01 18:52:40.000000000 +0000
1695+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_host_qmaster.c    2010-03-04 14:11:44.067049984 +0000
1696@@ -361,7 +361,7 @@
1697    }
1698 
1699    if (target==SGE_EH_LIST && !strcasecmp(unique, "global")) {
1700-      ERROR((SGE_EVENT, MSG_OBJ_DELGLOBALHOST));
1701+      ERROR((SGE_EVENT, "%s", MSG_OBJ_DELGLOBALHOST));
1702       answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
1703       DEXIT;
1704       return STATUS_ESEMANTIC;
1705@@ -999,7 +999,7 @@
1706    DENTER(GDI_LAYER, "sge_gdi_kill_exechost");
1707 
1708    if (!manop_is_manager(packet->user)) {
1709-      ERROR((SGE_EVENT, MSG_OBJ_SHUTDOWNPERMS));
1710+      ERROR((SGE_EVENT, "%s", MSG_OBJ_SHUTDOWNPERMS));
1711       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOMGR,
1712                       ANSWER_QUALITY_ERROR);
1713       DEXIT;
1714@@ -1048,7 +1048,7 @@
1715       if (lGetNumberOfElem(task->answer_list) == 0) {
1716          /* no exechosts have been killed */
1717          DPRINTF((MSG_SGETEXT_NOEXECHOSTS));
1718-         INFO((SGE_EVENT, MSG_SGETEXT_NOEXECHOSTS));
1719+         INFO((SGE_EVENT, "%s", MSG_SGETEXT_NOEXECHOSTS));
1720          answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_OK, ANSWER_QUALITY_INFO);
1721       }
1722    } else {
1723diff -Nur source/daemons/qmaster/sge_job_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_job_qmaster.c
1724--- source/daemons/qmaster/sge_job_qmaster.c    2009-12-01 18:52:40.000000000 +0000
1725+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_job_qmaster.c     2010-03-04 15:43:11.947053231 +0000
1726@@ -655,7 +655,7 @@
1727    DENTER(TOP_LAYER, "empty_job_list_filter");
1728 
1729    if (all_users_flag) {
1730-      ERROR((SGE_EVENT, MSG_SGETEXT_THEREARENOJOBS));
1731+      ERROR((SGE_EVENT, "%s", MSG_SGETEXT_THEREARENOJOBS));
1732    } else if (user_list_flag) {
1733       dstring user_list_string = DSTRING_INIT;
1734       
1735@@ -716,7 +716,7 @@
1736       }     
1737    } else {
1738       /* Should not be possible */
1739-      ERROR((SGE_EVENT,
1740+      ERROR((SGE_EVENT, "%s",
1741              was_modify?MSG_SGETEXT_NOJOBSMODIFIED:MSG_SGETEXT_NOJOBSDELETED));
1742    }
1743 
1744@@ -834,7 +834,7 @@
1745    /* case 9 */
1746   
1747    if (all_users_flag && user_list_flag) {
1748-      ERROR((SGE_EVENT, MSG_SGETEXT_SPECIFYONEORALLUSER));
1749+      ERROR((SGE_EVENT, "%s", MSG_SGETEXT_SPECIFYONEORALLUSER));
1750       answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1751       DRETURN(STATUS_EUNKNOWN);
1752    }
1753@@ -2516,7 +2516,7 @@
1754 
1755       /* reject PE ranges change requests for jobs without PE request */
1756       if (!(pe_name=lGetString(new_job, JB_pe))) {
1757-         ERROR((SGE_EVENT, MSG_JOB_PERANGE_ONLY_FOR_PARALLEL));
1758+         ERROR((SGE_EVENT, "%s", MSG_JOB_PERANGE_ONLY_FOR_PARALLEL));
1759          answer_list_add(alpp, SGE_EVENT, STATUS_EEXIST, ANSWER_QUALITY_ERROR);
1760          DRETURN(STATUS_EUNKNOWN);
1761       }
1762@@ -2830,7 +2830,7 @@
1763    predecessors_req = lGetList(job, JB_jid_request_list);
1764    predecessors_id = lCreateList("job_predecessors", JRE_Type);
1765    if (!predecessors_id) {
1766-      ERROR((SGE_EVENT, MSG_JOB_MOD_JOBDEPENDENCY_MEMORY ));
1767+      ERROR((SGE_EVENT, "%s", MSG_JOB_MOD_JOBDEPENDENCY_MEMORY ));
1768       answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1769       DRETURN(STATUS_EUNKNOWN);
1770    }
1771@@ -2935,7 +2935,7 @@
1772    predecessors_req = lGetList(job, JB_ja_ad_request_list);
1773    predecessors_id = lCreateList("job_predecessors_ad", JRE_Type);
1774    if (!predecessors_id) {
1775-      ERROR((SGE_EVENT, MSG_JOB_MOD_JOBDEPENDENCY_MEMORY ));
1776+      ERROR((SGE_EVENT, "%s", MSG_JOB_MOD_JOBDEPENDENCY_MEMORY ));
1777       answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1778       DRETURN(STATUS_EUNKNOWN);
1779    }
1780@@ -2946,7 +2946,7 @@
1781       if (!job_is_array(job)) {
1782          lFreeList(&predecessors_id);   
1783          DPRINTF(("could not create array dependence for non-array job\n"));
1784-         ERROR((SGE_EVENT, MSG_JOB_MOD_CANONLYSPECIFYHOLDJIDADWITHADOPT));
1785+         ERROR((SGE_EVENT, "%s", MSG_JOB_MOD_CANONLYSPECIFYHOLDJIDADWITHADOPT));
1786          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1787          DRETURN(STATUS_EUNKNOWN);
1788       }
1789@@ -3023,7 +3023,7 @@
1790       if (!job_is_array(pred_job)) {
1791          lFreeList(&predecessors_id);
1792          DPRINTF(("could not create array dependence on non-array job\n"));
1793-         ERROR((SGE_EVENT, MSG_JOB_MOD_CANONLYSPECIFYHOLDJIDADWITHADOPT));
1794+         ERROR((SGE_EVENT, "%s", MSG_JOB_MOD_CANONLYSPECIFYHOLDJIDADWITHADOPT));
1795          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1796          DRETURN(STATUS_EUNKNOWN);
1797       }
1798@@ -3031,7 +3031,7 @@
1799       if (!sge_task_depend_is_same_range(pred_job, job)) {
1800          lFreeList(&predecessors_id);
1801          DPRINTF(("could not create array dependence for jobs with different sub-task range\n"));
1802-         ERROR((SGE_EVENT, MSG_JOB_MOD_ARRAYJOBMUSTHAVESAMERANGEWITHADOPT));
1803+         ERROR((SGE_EVENT, "%s", MSG_JOB_MOD_ARRAYJOBMUSTHAVESAMERANGEWITHADOPT));
1804          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1805          DRETURN(STATUS_EUNKNOWN);
1806       }
1807@@ -3395,7 +3395,7 @@
1808             *trigger |= VERIFY_EVENT;
1809          }
1810          if (!a.pe) {
1811-            sprintf(SGE_EVENT, MSG_JOB_VERIFYFOUNDQ);
1812+            sprintf(SGE_EVENT, "%s", MSG_JOB_VERIFYFOUNDQ);
1813          } else {
1814             sprintf(SGE_EVENT, MSG_JOB_VERIFYFOUNDSLOTS_I, a.slots);
1815          }
1816@@ -4160,7 +4160,7 @@
1817        * every job *must* request a project
1818        */
1819       if (lGetNumberOfElem(projects) > 0) {
1820-         ERROR((SGE_EVENT, MSG_JOB_PRJREQUIRED));
1821+         ERROR((SGE_EVENT, "%s", MSG_JOB_PRJREQUIRED));
1822          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1823          ret = STATUS_EUNKNOWN;
1824       }
1825@@ -4169,7 +4169,7 @@
1826          char* enforce_project = mconf_get_enforce_project();
1827 
1828          if (enforce_project != NULL && strcasecmp(enforce_project, "true") == 0) {
1829-            ERROR((SGE_EVENT, MSG_SGETEXT_NO_PROJECT));
1830+            ERROR((SGE_EVENT, "%s", MSG_SGETEXT_NO_PROJECT));
1831             answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1832             ret = STATUS_EUNKNOWN;
1833          }
1834diff -Nur source/daemons/qmaster/sge_job_verify.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_job_verify.c
1835--- source/daemons/qmaster/sge_job_verify.c     2009-12-01 18:52:40.000000000 +0000
1836+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_job_verify.c      2010-03-04 14:11:44.079051373 +0000
1837@@ -169,7 +169,7 @@
1838    if (ret == STATUS_OK) {
1839       if ((!JOB_TYPE_IS_BINARY(lGetUlong(jep, JB_type)) &&
1840           !lGetString(jep, JB_script_ptr) && lGetString(jep, JB_script_file))) {
1841-         ERROR((SGE_EVENT, MSG_JOB_NOSCRIPT));
1842+         ERROR((SGE_EVENT, "%s", MSG_JOB_NOSCRIPT));
1843          answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1844          ret = STATUS_EUNKNOWN;
1845       }
1846@@ -605,7 +605,7 @@
1847     * jobs with higher priority than 0 (=BASE_PRIORITY)
1848     */
1849    if (lGetUlong(jep, JB_priority) > BASE_PRIORITY && !manop_is_operator(ruser)) {
1850-      ERROR((SGE_EVENT, MSG_JOB_NONADMINPRIO));
1851+      ERROR((SGE_EVENT, "%s", MSG_JOB_NONADMINPRIO));
1852       answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
1853       DRETURN(STATUS_EUNKNOWN);
1854    }
1855diff -Nur source/daemons/qmaster/sge_pe_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_pe_qmaster.c
1856--- source/daemons/qmaster/sge_pe_qmaster.c     2009-12-01 18:52:40.000000000 +0000
1857+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_pe_qmaster.c      2010-03-04 14:11:44.079051373 +0000
1858@@ -212,7 +212,7 @@
1859    /* -------- PE_resource_utilization */
1860    if (add) {
1861       if (pe_set_slots_used(new_pe, 0)) {
1862-         ERROR((SGE_EVENT, MSG_MEM_MALLOC));
1863+         ERROR((SGE_EVENT, "%s", MSG_MEM_MALLOC));
1864          answer_list_add(alpp, SGE_EVENT, STATUS_EMALLOC, ANSWER_QUALITY_ERROR);
1865          DEXIT;
1866          return STATUS_EMALLOC;
1867diff -Nur source/daemons/qmaster/sge_qmaster_heartbeat.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_heartbeat.c
1868--- source/daemons/qmaster/sge_qmaster_heartbeat.c      2009-12-01 18:52:40.000000000 +0000
1869+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_heartbeat.c       2010-03-04 14:11:44.087050032 +0000
1870@@ -153,9 +153,9 @@
1871          if ( getuniquehostname(act_qmaster_name, act_resolved_qmaster_name, 0) == CL_RETVAL_OK &&
1872               sge_hostcmp(act_resolved_qmaster_name, qualified_hostname) != 0      ) {
1873             /* act_qmaster file has been changed */
1874-            WARNING((SGE_EVENT, MSG_HEART_ACT_QMASTER_FILE_CHANGED));
1875+            WARNING((SGE_EVENT, "%s", MSG_HEART_ACT_QMASTER_FILE_CHANGED));
1876             if (sge_qmaster_shutdown_via_signal_thread(100) != 0) {
1877-               ERROR((SGE_EVENT, MSG_HEART_CANT_SIGNAL));
1878+               ERROR((SGE_EVENT, "%s", MSG_HEART_CANT_SIGNAL));
1879                /* TODO: here the ctx reference is not transported back
1880                **       event_handler functions should use &ctx instead
1881                */
1882diff -Nur source/daemons/qmaster/sge_qmaster_main.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_main.c
1883--- source/daemons/qmaster/sge_qmaster_main.c   2009-12-01 18:52:40.000000000 +0000
1884+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_main.c    2010-03-05 12:29:33.430550979 +0000
1885@@ -327,7 +327,7 @@
1886       max_enroll_tries--;
1887       if (max_enroll_tries <= 0) {
1888          /* exit after 30 seconds */
1889-         CRITICAL((SGE_EVENT, MSG_QMASTER_COMMUNICATION_ERRORS ));
1890+         CRITICAL((SGE_EVENT, "%s", MSG_QMASTER_COMMUNICATION_ERRORS ));
1891          SGE_EXIT((void**)&ctx, 1);
1892       }
1893       if (cl_com_get_handle(prognames[QMASTER],1) == NULL) {
1894@@ -343,7 +343,7 @@
1895     */
1896    ret_val = cl_com_set_status_func(sge_qmaster_application_status);
1897    if (ret_val != CL_RETVAL_OK) {
1898-      ERROR((SGE_EVENT, cl_get_error_text(ret_val)));
1899+      ERROR((SGE_EVENT, "%s", cl_get_error_text(ret_val)));
1900    }
1901 
1902    /*
1903diff -Nur source/daemons/qmaster/sge_qmaster_process_message.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_process_message.c
1904--- source/daemons/qmaster/sge_qmaster_process_message.c        2009-12-01 18:52:40.000000000 +0000
1905+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_process_message.c 2010-03-04 14:11:44.087050032 +0000
1906@@ -326,7 +326,7 @@
1907     }
1908 
1909    if (cull_unpack_list(&(aMsg->buf), &rep)) {
1910-      ERROR((SGE_EVENT,MSG_CULL_FAILEDINCULLUNPACKLISTREPORT));
1911+      ERROR((SGE_EVENT, "%s", MSG_CULL_FAILEDINCULLUNPACKLISTREPORT));
1912       DRETURN_VOID;
1913    }
1914 
1915@@ -576,7 +576,7 @@
1916       }
1917 
1918    default:
1919-      ERROR((SGE_EVENT, MSG_COM_ACK_UNKNOWN));
1920+      ERROR((SGE_EVENT, "%s", MSG_COM_ACK_UNKNOWN));
1921    }
1922    DRETURN_VOID;
1923 }
1924diff -Nur source/daemons/qmaster/sge_qmaster_threads.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_threads.c
1925--- source/daemons/qmaster/sge_qmaster_threads.c        2009-12-01 18:52:40.000000000 +0000
1926+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmaster_threads.c 2010-03-05 12:29:33.426549963 +0000
1927@@ -104,7 +104,7 @@
1928 
1929    if (sge_gdi_packet_parse_auth_info(packet, &(task->answer_list), &uid, username, sizeof(username),
1930                                   &gid, groupname, sizeof(groupname)) == -1) {
1931-      ERROR((SGE_EVENT, MSG_GDI_FAILEDTOEXTRACTAUTHINFO));
1932+      ERROR((SGE_EVENT, "%s", MSG_GDI_FAILEDTOEXTRACTAUTHINFO));
1933       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_ERROR);
1934       DEXIT;
1935       return;
1936@@ -113,7 +113,7 @@
1937    DPRINTF(("uid/username = %d/%s, gid/groupname = %d/%s\n", (int) uid, username, (int) gid, groupname));
1938 
1939    if (!manop_is_manager(username)) {
1940-      ERROR((SGE_EVENT, MSG_SHUTDOWN_SHUTTINGDOWNQMASTERREQUIRESMANAGERPRIVILEGES));
1941+      ERROR((SGE_EVENT, "%s", MSG_SHUTDOWN_SHUTTINGDOWNQMASTERREQUIRESMANAGERPRIVILEGES));
1942       answer_list_add(&(task->answer_list), SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_ERROR);
1943       DEXIT;
1944       return;
1945@@ -249,12 +249,12 @@
1946    DENTER(TOP_LAYER, "sge_become_admin_user");
1947 
1948    if (sge_set_admin_username(admin_user, str) == -1) {
1949-      CRITICAL((SGE_EVENT, str));
1950+      CRITICAL((SGE_EVENT, "%s", str));
1951       SGE_EXIT(NULL, 1);
1952    }
1953 
1954    if (sge_switch2admin_user()) {
1955-      CRITICAL((SGE_EVENT, MSG_ERROR_CANTSWITCHTOADMINUSER));
1956+      CRITICAL((SGE_EVENT, "%s", MSG_ERROR_CANTSWITCHTOADMINUSER));
1957       SGE_EXIT(NULL, 1);
1958    }
1959 
1960diff -Nur source/daemons/qmaster/sge_qmod_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmod_qmaster.c
1961--- source/daemons/qmaster/sge_qmod_qmaster.c   2009-12-01 18:52:40.000000000 +0000
1962+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_qmod_qmaster.c    2010-03-04 14:11:44.083051674 +0000
1963@@ -637,7 +637,7 @@
1964    DPRINTF(("cleaning queue >%s<\n", qname ));
1965 
1966    if (!manop_is_manager(user)) {
1967-      ERROR((SGE_EVENT, MSG_QUEUE_NOCLEANQPERMS));
1968+      ERROR((SGE_EVENT, "%s", MSG_QUEUE_NOCLEANQPERMS));
1969       answer_list_add(answer, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
1970       DEXIT;
1971       return -1;
1972diff -Nur source/daemons/qmaster/sge_resource_quota_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_resource_quota_qmaster.c
1973--- source/daemons/qmaster/sge_resource_quota_qmaster.c 2009-12-01 18:52:40.000000000 +0000
1974+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_resource_quota_qmaster.c  2010-03-04 14:11:44.087050032 +0000
1975@@ -168,7 +168,7 @@
1976                attr_mod_sub_list(alpp, new_rule, RQR_limit, RQRL_name, rule,
1977                                  sub_command, SGE_ATTR_RQSRULES, SGE_OBJ_RQS, 0);
1978             } else {
1979-               ERROR((SGE_EVENT, MSG_RESOURCEQUOTA_NORULEDEFINED));
1980+               ERROR((SGE_EVENT, "%s", MSG_RESOURCEQUOTA_NORULEDEFINED));
1981                answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC,
1982                                ANSWER_QUALITY_ERROR);
1983                goto ERROR;                 
1984diff -Nur source/daemons/qmaster/sge_sched_prepare_data.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_sched_prepare_data.c
1985--- source/daemons/qmaster/sge_sched_prepare_data.c     2009-12-01 18:52:40.000000000 +0000
1986+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_sched_prepare_data.c      2010-03-04 14:11:44.055050077 +0000
1987@@ -399,7 +399,7 @@
1988        where_what->what_queue == NULL || where_what->where_queue2 == NULL ||
1989        where_what->what_queue2 == NULL || where_what->where_all_queue == NULL ||
1990        where_what->what_pe == NULL) {
1991-      CRITICAL((SGE_EVENT, MSG_SCHEDD_UNABLE_TO_SETUP_FILTER));
1992+      CRITICAL((SGE_EVENT, "%s", MSG_SCHEDD_UNABLE_TO_SETUP_FILTER));
1993    }
1994    /* cleanup tmp data */
1995    if (tmp_what_descr != NULL) {
1996diff -Nur source/daemons/qmaster/sge_userset_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_userset_qmaster.c
1997--- source/daemons/qmaster/sge_userset_qmaster.c        2009-12-01 18:52:40.000000000 +0000
1998+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_userset_qmaster.c 2010-03-04 14:11:44.083051674 +0000
1999@@ -287,13 +287,13 @@
2000    if (dept != NULL) {
2001       /* test 'type' */
2002       if (!(lGetUlong(dept, US_type) & US_DEPT)) {
2003-         ERROR((SGE_EVENT, MSG_QMASTER_DEPTFORDEFDEPARTMENT));
2004+         ERROR((SGE_EVENT, "%s", MSG_QMASTER_DEPTFORDEFDEPARTMENT));
2005          answer_list_add(answer_list, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2006          ret = 0;
2007       }
2008       /* test user list */
2009       if (lGetNumberOfElem(lGetList(dept, US_entries)) > 0 ) {
2010-         ERROR((SGE_EVENT, MSG_QMASTER_AUTODEFDEPARTMENT));
2011+         ERROR((SGE_EVENT, "%s", MSG_QMASTER_AUTODEFDEPARTMENT));
2012          answer_list_add(answer_list, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2013          ret = 0;
2014       }
2015@@ -327,12 +327,12 @@
2016    if (acl != NULL) {
2017       if (!(lGetUlong(acl, US_type) & US_DEPT)) {
2018          if (lGetUlong(acl, US_fshare) > 0) {
2019-            ERROR((SGE_EVENT, MSG_QMASTER_ACLNOSHARE));
2020+            ERROR((SGE_EVENT, "%s", MSG_QMASTER_ACLNOSHARE));
2021             answer_list_add(answer_list, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2022             ret = 0;
2023          }
2024          if (lGetUlong(acl, US_oticket) > 0) {
2025-            ERROR((SGE_EVENT, MSG_QMASTER_ACLNOTICKET));
2026+            ERROR((SGE_EVENT, "%s", MSG_QMASTER_ACLNOTICKET));
2027             answer_list_add(answer_list, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2028             ret = 0;
2029          }
2030diff -Nur source/daemons/qmaster/sge_utility_qmaster.c ../../gridengine-6.2u4/source/daemons/qmaster/sge_utility_qmaster.c
2031--- source/daemons/qmaster/sge_utility_qmaster.c        2009-12-01 18:52:40.000000000 +0000
2032+++ ../../gridengine-6.2u4/source/daemons/qmaster/sge_utility_qmaster.c 2010-03-04 14:11:44.087050032 +0000
2033@@ -547,7 +547,7 @@
2034                }
2035 
2036                if (rstring == NULL || fstring == NULL) {
2037-                  ERROR((SGE_EVENT, MSG_OBJECT_VALUEMISSING));
2038+                  ERROR((SGE_EVENT, "%s", MSG_OBJECT_VALUEMISSING));
2039                   answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC,
2040                                   ANSWER_QUALITY_ERROR);
2041                   ret = false;
2042@@ -618,7 +618,7 @@
2043                }
2044 
2045                if (rstring == NULL) {
2046-                  ERROR((SGE_EVENT, MSG_OBJECT_VALUEMISSING));
2047+                  ERROR((SGE_EVENT, "%s", MSG_OBJECT_VALUEMISSING));
2048                   answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC,
2049                                   ANSWER_QUALITY_ERROR);
2050                   ret = false;
2051diff -Nur source/daemons/shadowd/shadowd.c ../../gridengine-6.2u4/source/daemons/shadowd/shadowd.c
2052--- source/daemons/shadowd/shadowd.c    2009-12-01 18:52:41.000000000 +0000
2053+++ ../../gridengine-6.2u4/source/daemons/shadowd/shadowd.c     2010-03-04 14:11:44.091050443 +0000
2054@@ -125,7 +125,7 @@
2055 
2056    handle=cl_com_create_handle(&commlib_error, CL_CT_TCP, CL_CM_CT_MESSAGE, CL_FALSE, sge_qmaster_port, CL_TCP_DEFAULT,(char*)prognames[SHADOWD] , 0, 1,0 );
2057    if (handle == NULL) {
2058-      CRITICAL((SGE_EVENT,cl_get_error_text(commlib_error)));
2059+      CRITICAL((SGE_EVENT, "%s", cl_get_error_text(commlib_error)));
2060       DRETURN(is_up_and_running);
2061    }
2062 
2063@@ -284,12 +284,12 @@
2064    }
2065 
2066    if (sge_set_admin_username(ctx->get_admin_user(ctx), err_str)) {
2067-      CRITICAL((SGE_EVENT, err_str));
2068+      CRITICAL((SGE_EVENT, "%s", err_str));
2069       SGE_EXIT((void**)&ctx, 1);
2070    }
2071 
2072    if (sge_switch2admin_user()) {
2073-      CRITICAL((SGE_EVENT, MSG_SHADOWD_CANTSWITCHTOADMIN_USER));
2074+      CRITICAL((SGE_EVENT, "%s", MSG_SHADOWD_CANTSWITCHTOADMIN_USER));
2075       SGE_EXIT((void**)&ctx, 1);
2076    }
2077 
2078@@ -365,7 +365,7 @@
2079                if (ret == 0) {
2080                   /* we can start a qmaster on this host */
2081                   if (qmaster_lock(QMASTER_LOCK_FILE)) {
2082-                     ERROR((SGE_EVENT, MSG_SHADOWD_FAILEDTOLOCKQMASTERSOMBODYWASFASTER));
2083+                     ERROR((SGE_EVENT, "%s", MSG_SHADOWD_FAILEDTOLOCKQMASTERSOMBODYWASFASTER));
2084                   } else {
2085                      int out, err;
2086 
2087@@ -402,7 +402,7 @@
2088                         ret = startprog(out, err, NULL, binpath, qmaster_name, NULL);
2089                         sge_switch2admin_user();
2090                         if (ret) {
2091-                           ERROR((SGE_EVENT, MSG_SHADOWD_CANTSTARTQMASTER));
2092+                           ERROR((SGE_EVENT, "%s", MSG_SHADOWD_CANTSTARTQMASTER));
2093                         }
2094                         close(out);
2095                      } else {
2096@@ -533,7 +533,7 @@
2097       DRETURN(-1);
2098    }
2099 
2100-   sprintf(binpath, binary_path); /* copy global configuration path */
2101+   sprintf(binpath, "%s", binary_path); /* copy global configuration path */
2102    DPRINTF((""SFQ"\n", binpath));   
2103    DPRINTF(("we are a candidate for shadow master\n"));
2104 
2105diff -Nur source/libs/comm/cl_communication.c ../../gridengine-6.2u4/source/libs/comm/cl_communication.c
2106--- source/libs/comm/cl_communication.c 2009-12-01 18:52:43.000000000 +0000
2107+++ ../../gridengine-6.2u4/source/libs/comm/cl_communication.c  2010-03-04 12:09:43.722564956 +0000
2108@@ -3727,7 +3727,7 @@
2109             if ( cm_message->dst->comp_host != NULL ) {
2110                snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_CANT_RESOLVE_DESTINATION_HOST_S, cm_message->dst->comp_host  );
2111             } else {
2112-               snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_EMPTY_DESTINATION_HOST );
2113+               snprintf(tmp_buffer, 256, "%s", MSG_CL_TCP_FW_EMPTY_DESTINATION_HOST );
2114             }
2115             cl_commlib_push_application_error(CL_LOG_ERROR, retval , tmp_buffer );
2116             unique_host = strdup("(HOST_NOT_RESOLVABLE)");
2117@@ -3744,7 +3744,7 @@
2118             if ( cm_message->dst->comp_host != NULL && unique_host != NULL ) {
2119                snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_REMOTE_DESTINATION_HOSTNAME_X_NOT_Y_SS, cm_message->dst->comp_host, unique_host);
2120             } else {
2121-               snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_EMPTY_DESTINATION_HOST );
2122+               snprintf(tmp_buffer, 256, "%s", MSG_CL_TCP_FW_EMPTY_DESTINATION_HOST );
2123             }
2124             cl_commlib_push_application_error(CL_LOG_ERROR, CL_RETVAL_LOCAL_HOSTNAME_ERROR, tmp_buffer );
2125 
2126@@ -3788,7 +3788,7 @@
2127                if (cm_message->rdata->comp_host != NULL) {
2128                   snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_CANT_RESOLVE_RDATA_HOST_S , cm_message->rdata->comp_host);
2129                } else {
2130-                  snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_EMPTY_RDATA_HOST);
2131+                  snprintf(tmp_buffer, 256, "%s", MSG_CL_TCP_FW_EMPTY_RDATA_HOST);
2132                }
2133                cl_commlib_push_application_error(CL_LOG_ERROR, retval , tmp_buffer );
2134                unique_host = strdup("(HOST_NOT_RESOLVABLE)");
2135@@ -3809,7 +3809,7 @@
2136                if ( cm_message->rdata->comp_host != NULL && unique_host != NULL ) {
2137                   snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_REMOTE_RDATA_HOSTNAME_X_NOT_Y_SS, cm_message->rdata->comp_host, unique_host);
2138                } else {
2139-                  snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_EMPTY_RDATA_HOST );
2140+                  snprintf(tmp_buffer, 256, "%s", MSG_CL_TCP_FW_EMPTY_RDATA_HOST );
2141                }
2142                cl_commlib_push_application_error(CL_LOG_ERROR, CL_RETVAL_LOCAL_HOSTNAME_ERROR, tmp_buffer );
2143 
2144@@ -3948,9 +3948,9 @@
2145                snprintf(tmp_buffer, 256, MSG_CL_TCP_FW_IP_ADDRESS_RESOLVING_X_NOT_Y_SS, connection->client_host_name, connection->remote->comp_host );
2146             } else {
2147                if (connection->client_host_name == NULL) {
2148-                  snprintf(tmp_buffer,256, MSG_CL_TCP_FW_CANT_RESOLVE_CLIENT_IP );
2149+                  snprintf(tmp_buffer,256, "%s", MSG_CL_TCP_FW_CANT_RESOLVE_CLIENT_IP );
2150                } else {
2151-                  snprintf(tmp_buffer,256, MSG_CL_TCP_FW_EMPTY_REMOTE_HOST );
2152+                  snprintf(tmp_buffer,256, "%s", MSG_CL_TCP_FW_EMPTY_REMOTE_HOST );
2153                }
2154             }
2155             cl_commlib_push_application_error(CL_LOG_ERROR, CL_RETVAL_LOCAL_HOSTNAME_ERROR, tmp_buffer );
2156diff -Nur source/libs/comm/cl_ssl_framework.c ../../gridengine-6.2u4/source/libs/comm/cl_ssl_framework.c
2157--- source/libs/comm/cl_ssl_framework.c 2009-12-01 18:52:43.000000000 +0000
2158+++ ../../gridengine-6.2u4/source/libs/comm/cl_ssl_framework.c  2010-03-04 12:30:47.890565564 +0000
2159@@ -2011,7 +2011,7 @@
2160    if (buffer_copy == NULL) {
2161       return CL_RETVAL_MALLOC;
2162    }
2163-   snprintf(buffer_copy, buflen, buffer);
2164+   snprintf(buffer_copy, buflen, "%s", buffer);
2165 
2166    help = strtok_r(buffer_copy, ":", &lasts);
2167    if (help != NULL) {
2168@@ -2057,7 +2057,7 @@
2169          free(module);
2170          return CL_RETVAL_MALLOC;
2171       }
2172-      snprintf(error_text, buflen, buffer);
2173+      snprintf(error_text, buflen, "%s", buffer);
2174    } 
2175 
2176 
2177@@ -2144,11 +2144,11 @@
2178       ret_val = cl_com_ssl_transform_ssl_error(ssl_error,buffer,512, &transformed_ssl_error);
2179 
2180       if (transformed_ssl_error != NULL) {
2181-         snprintf(help_buf, 1024, transformed_ssl_error);
2182+         snprintf(help_buf, 1024, "%s", transformed_ssl_error);
2183          free(transformed_ssl_error);
2184          transformed_ssl_error = NULL;
2185       } else {
2186-         snprintf(help_buf, 1024, buffer);
2187+         snprintf(help_buf, 1024, "%s", buffer);
2188       }
2189 
2190       if (ret_val != CL_RETVAL_DO_IGNORE) {
2191@@ -3078,7 +3078,7 @@
2192                   if (connection->client_host_name != NULL) {
2193                      snprintf(tmp_buffer,1024, MSG_CL_COMMLIB_SSL_ACCEPT_TIMEOUT_ERROR_S, connection->client_host_name);
2194                   } else {
2195-                     snprintf(tmp_buffer,1024, MSG_CL_COMMLIB_SSL_ACCEPT_TIMEOUT_ERROR);
2196+                     snprintf(tmp_buffer,1024, "%s", MSG_CL_COMMLIB_SSL_ACCEPT_TIMEOUT_ERROR);
2197                   }
2198 
2199                   cl_commlib_push_application_error(CL_LOG_ERROR, CL_RETVAL_SSL_ACCEPT_HANDSHAKE_TIMEOUT, tmp_buffer);
2200@@ -3093,7 +3093,7 @@
2201                if (connection->client_host_name != NULL) {
2202                   snprintf(tmp_buffer,1024, MSG_CL_COMMLIB_SSL_ACCEPT_ERROR_S, connection->client_host_name);
2203                } else {
2204-                  snprintf(tmp_buffer,1024, MSG_CL_COMMLIB_SSL_ACCEPT_ERROR);
2205+                  snprintf(tmp_buffer,1024, "%s", MSG_CL_COMMLIB_SSL_ACCEPT_ERROR);
2206                }
2207 
2208                cl_commlib_push_application_error(CL_LOG_ERROR, CL_RETVAL_SSL_ACCEPT_ERROR, tmp_buffer);
2209diff -Nur source/libs/cull/cull_file.c ../../gridengine-6.2u4/source/libs/cull/cull_file.c
2210--- source/libs/cull/cull_file.c        2009-12-01 18:52:42.000000000 +0000
2211+++ ../../gridengine-6.2u4/source/libs/cull/cull_file.c 2010-03-03 14:28:59.935055982 +0000
2212@@ -90,7 +90,7 @@
2213    DENTER(TOP_LAYER, "lWriteElemToDisk");
2214 
2215    if (!prefix && !name) {
2216-      ERROR((SGE_EVENT, MSG_CULL_NOPREFIXANDNOFILENAMEINWRITEELMTODISK ));
2217+      ERROR((SGE_EVENT, "%s", MSG_CULL_NOPREFIXANDNOFILENAMEINWRITEELMTODISK ));
2218       DEXIT;
2219       return 1;
2220    }
2221@@ -206,7 +206,7 @@
2222    DENTER(TOP_LAYER, "lReadElemFromDisk");
2223 
2224    if (!prefix && !name) {
2225-      ERROR((SGE_EVENT,  MSG_CULL_NOPREFIXANDNOFILENAMEINREADELEMFROMDISK ));
2226+      ERROR((SGE_EVENT,  "%s", MSG_CULL_NOPREFIXANDNOFILENAMEINREADELEMFROMDISK ));
2227       DEXIT;
2228       return NULL;
2229    }
2230@@ -236,7 +236,7 @@
2231    size = statbuf.st_size;
2232    if (((SGE_OFF_T)size != statbuf.st_size)
2233        || !(buf = malloc(statbuf.st_size))) {
2234-      CRITICAL((SGE_EVENT, MSG_CULL_LEMALLOC));
2235+      CRITICAL((SGE_EVENT, "%s", MSG_CULL_LEMALLOC));
2236       clear_packbuffer(&pb);
2237       DEXIT;
2238       return NULL;
2239diff -Nur source/libs/cull/cull_multitype.c ../../gridengine-6.2u4/source/libs/cull/cull_multitype.c
2240--- source/libs/cull/cull_multitype.c   2009-12-01 18:52:42.000000000 +0000
2241+++ ../../gridengine-6.2u4/source/libs/cull/cull_multitype.c    2010-03-03 14:28:20.858564049 +0000
2242@@ -101,8 +101,8 @@
2243    va_start(ap, fmt);
2244    vsprintf(buf, fmt, ap);
2245 
2246-   CRITICAL((SGE_EVENT, buf));
2247-   fprintf(stderr, buf);
2248+   CRITICAL((SGE_EVENT, "%s", buf));
2249+   fprintf(stderr, "%s", buf);
2250 
2251    abort();
2252    DEXIT;
2253@@ -753,7 +753,7 @@
2254    if (pos < 0) {
2255       /* someone has called lGetPosUlong() */
2256       /* makro with an invalid nm        */
2257-      CRITICAL((SGE_EVENT, MSG_CULL_GETPOSULONG_GOTINVALIDPOSITION ));
2258+      CRITICAL((SGE_EVENT, "%s", MSG_CULL_GETPOSULONG_GOTINVALIDPOSITION ));
2259       DEXIT;
2260       abort();
2261    }
2262@@ -996,7 +996,7 @@
2263    if (pos < 0) {
2264       /* someone has called lGetPosUlong() */
2265       /* makro with an invalid nm        */
2266-      CRITICAL((SGE_EVENT, MSG_CULL_GETPOSOBJECT_GOTANINVALIDPOS ));
2267+      CRITICAL((SGE_EVENT, "%s", MSG_CULL_GETPOSOBJECT_GOTANINVALIDPOS ));
2268       DEXIT;
2269       abort();
2270    }
2271@@ -1033,7 +1033,7 @@
2272    if (pos < 0) {
2273       /* someone has called lGetPosUlong() */
2274       /* makro with an invalid nm        */
2275-      CRITICAL((SGE_EVENT, MSG_CULL_GETPOSLIST_GOTANINVALIDPOS ));
2276+      CRITICAL((SGE_EVENT, "%s", MSG_CULL_GETPOSLIST_GOTANINVALIDPOS ));
2277       DEXIT;
2278       abort();
2279    }
2280diff -Nur source/libs/evc/sge_event_client.c ../../gridengine-6.2u4/source/libs/evc/sge_event_client.c
2281--- source/libs/evc/sge_event_client.c  2009-12-01 18:52:46.000000000 +0000
2282+++ ../../gridengine-6.2u4/source/libs/evc/sge_event_client.c   2010-03-04 14:11:44.010563844 +0000
2283@@ -1086,7 +1086,7 @@
2284    DENTER(EVC_LAYER, "ec2_set_edtime");
2285   
2286    if (sge_evc->ec == NULL) {
2287-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2288+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2289    } else {
2290       ret = (lGetUlong(sge_evc->ec, EV_d_time) != interval);
2291       if (ret > 0) {
2292@@ -1125,7 +1125,7 @@
2293    DENTER(EVC_LAYER, "ec2_get_edtime");
2294 
2295    if (sge_evc->ec == NULL) {
2296-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2297+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2298    } else {
2299       interval = lGetUlong(sge_evc->ec, EV_d_time);
2300    }
2301@@ -1167,7 +1167,7 @@
2302    DENTER(EVC_LAYER, "ec2_set_flush_delay");
2303   
2304    if (sge_evc->ec == NULL) {
2305-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2306+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2307    } else {
2308       ret = (lGetUlong(sge_evc->ec, EV_flush_delay) != flush_delay) ? true : false;
2309 
2310@@ -1208,7 +1208,7 @@
2311    DENTER(EVC_LAYER, "ec2_get_flush_delay");
2312 
2313    if (sge_evc->ec == NULL) {
2314-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2315+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2316    } else {
2317       flush_delay = lGetUlong(sge_evc->ec, EV_flush_delay);
2318    }
2319@@ -1257,7 +1257,7 @@
2320    DENTER(EVC_LAYER, "ec2_set_busy_handling");
2321   
2322    if (sge_evc->ec == NULL) {
2323-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2324+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2325    } else {
2326       DPRINTF(("EVC: change event client to "sge_U32CFormat"\n", (u_long32)handling));
2327 
2328@@ -1300,7 +1300,7 @@
2329    DENTER(EVC_LAYER, "ec2_get_busy_handling");
2330 
2331    if (sge_evc->ec == NULL) {
2332-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2333+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2334    } else {
2335       handling = (ev_busy_handling)lGetUlong(sge_evc->ec, EV_busy_handling);
2336    }
2337@@ -1319,7 +1319,7 @@
2338 
2339    /* not yet initialized? Nothing to shutdown */
2340    if (sge_evc == NULL || sge_evc->ec == NULL) {
2341-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2342+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2343    } else {
2344       local_t *evc_local = &(thiz->ec_local);
2345       u_long32 id = sge_evc->ec_reg_id;
2346@@ -1391,7 +1391,7 @@
2347    DPRINTF(("trying to register as internal client with preset %d (0 means EV_ID_ANY)\n", (int)sge_evc->ec_reg_id));
2348 
2349    if (sge_evc->ec == NULL) {
2350-      WARNING((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2351+      WARNING((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2352       ret = false;
2353    } else {
2354       lList *alp = NULL;
2355@@ -1494,7 +1494,7 @@
2356    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2357 
2358    if (sge_evc->ec == NULL) {
2359-      WARNING((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2360+      WARNING((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2361    } else {
2362       lList *lp, *alp;
2363       lListElem *aep;
2364@@ -1729,7 +1729,7 @@
2365    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2366 
2367    if (sge_evc->ec == NULL) {
2368-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2369+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2370    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2371       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event));
2372    } else {
2373@@ -1759,7 +1759,7 @@
2374    DENTER(EVC_LAYER, "ec2_add_subscriptionElement");
2375 
2376    if (sge_evc->ec == NULL) {
2377-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2378+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2379    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2380       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event));
2381    } else {
2382@@ -1797,7 +1797,7 @@
2383    DENTER(EVC_LAYER, "ec2_mod_subscription_flush");
2384   
2385    if (sge_evc->ec == NULL) {
2386-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2387+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2388    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2389       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event));
2390    } else {
2391@@ -1852,7 +1852,7 @@
2392    DENTER(EVC_LAYER, "ec2_mod_subscription_where");
2393 
2394    if (sge_evc->ec == NULL) {
2395-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2396+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2397    } else if (event <= sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2398       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event));
2399    } else {
2400@@ -1883,7 +1883,7 @@
2401    DENTER(EVC_LAYER, "ec2_remove_subscriptionElement");
2402 
2403    if (sge_evc->ec == NULL) {
2404-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2405+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2406    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2407       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event));
2408    } else {
2409@@ -1982,7 +1982,7 @@
2410    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2411 
2412    if (sge_evc->ec == NULL) {
2413-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2414+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2415    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2416       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event ));
2417    } else {
2418@@ -1997,7 +1997,7 @@
2419 
2420       } else {
2421          if (event == sgeE_QMASTER_GOES_DOWN || event == sgeE_SHUTDOWN || event == sgeE_ACK_TIMEOUT) {
2422-            ERROR((SGE_EVENT, MSG_EVENT_HAVETOHANDLEEVENTS));
2423+            ERROR((SGE_EVENT, "%s", MSG_EVENT_HAVETOHANDLEEVENTS));
2424          } else {
2425             ec2_remove_subscriptionElement(thiz, event);
2426          }
2427@@ -2084,14 +2084,14 @@
2428    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2429 
2430    if (sge_evc->ec == NULL) {
2431-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2432+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2433    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2434       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event ));
2435    } else {
2436       lListElem *sub_event = lGetElemUlong(lGetList(sge_evc->ec, EV_subscribed), EVS_id, event);
2437 
2438       if (sub_event == NULL) {
2439-         ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2440+         ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2441       } else if (lGetBool(sub_event, EVS_flush)) {
2442          ret = lGetUlong(sub_event, EVS_interval);
2443       }
2444@@ -2145,7 +2145,7 @@
2445    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2446 
2447    if (sge_evc->ec == NULL) {
2448-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2449+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2450    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2451       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event ));
2452    } else {
2453@@ -2160,7 +2160,7 @@
2454          lListElem *sub_event = lGetElemUlong(lGetList(sge_evc->ec, EV_subscribed), EVS_id, event);
2455 
2456          if (sub_event == NULL) {
2457-            ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2458+            ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2459          }
2460          else {
2461             ec2_mod_subscription_flush(thiz, event, EV_FLUSHED, interval);
2462@@ -2213,14 +2213,14 @@
2463    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2464 
2465    if (sge_evc->ec == NULL) {
2466-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2467+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2468    } else if (event < sgeE_ALL_EVENTS || event >= sgeE_EVENTSIZE) {
2469       WARNING((SGE_EVENT, MSG_EVENT_ILLEGALEVENTID_I, event ));
2470    } else {
2471       lListElem *sub_event = lGetElemUlong(lGetList(sge_evc->ec, EV_subscribed), EVS_id, event);
2472 
2473       if (sub_event == NULL) {
2474-         ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2475+         ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2476       }
2477       else {
2478          ec2_mod_subscription_flush(thiz, event, EV_NOT_FLUSHED, EV_NO_FLUSH);
2479@@ -2319,7 +2319,7 @@
2480    DENTER(EVC_LAYER, "ec2_set_busy");
2481 
2482    if (sge_evc->ec == NULL) {
2483-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2484+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2485    } else {
2486       lSetUlong(sge_evc->ec, EV_busy, busy);
2487       ret = true;
2488@@ -2361,7 +2361,7 @@
2489    DENTER(EVC_LAYER, "ec2_get_busy");
2490 
2491    if (sge_evc->ec == NULL) {
2492-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2493+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2494    } else {
2495       /* JG: TODO: EV_busy should be boolean datatype */
2496       ret = (lGetUlong(sge_evc->ec, EV_busy) > 0) ? true : false;
2497@@ -2399,7 +2399,7 @@
2498    DENTER(EVC_LAYER, "ec2_set_session");
2499 
2500    if (sge_evc->ec == NULL) {
2501-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2502+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2503    } else {
2504       lSetString(sge_evc->ec, EV_session, session);
2505 
2506@@ -2437,7 +2437,7 @@
2507    DENTER(EVC_LAYER, "ec2_get_session");
2508 
2509    if (sge_evc->ec == NULL) {
2510-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2511+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2512    } else {
2513       ret = lGetString(sge_evc->ec, EV_session);
2514    }
2515@@ -2464,7 +2464,7 @@
2516 
2517    DENTER(EVC_LAYER, "ec2_get_id");
2518    if (sge_evc->ec == NULL) {
2519-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2520+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2521       DRETURN(EV_ID_INVALID);
2522    }
2523   
2524@@ -2791,7 +2791,7 @@
2525    PROF_START_MEASUREMENT(SGE_PROF_EVENTCLIENT);
2526 
2527    if (sge_evc->ec == NULL) {
2528-      ERROR((SGE_EVENT, MSG_EVENT_UNINITIALIZED_EC));
2529+      ERROR((SGE_EVENT, "%s", MSG_EVENT_UNINITIALIZED_EC));
2530       ret = false;
2531    } else if (thiz->ec_need_new_registration(thiz)) {
2532       sge_evc->next_event = 1;
2533@@ -2938,7 +2938,7 @@
2534                                      lGetUlong(sge_evc->ec, EV_id), NULL, &alp)
2535                                     != CL_RETVAL_OK) {
2536             answer_list_output(&alp);
2537-            WARNING((SGE_EVENT, MSG_COMMD_FAILEDTOSENDACKEVENTDELIVERY ));
2538+            WARNING((SGE_EVENT, "%s", MSG_COMMD_FAILEDTOSENDACKEVENTDELIVERY ));
2539          } else {
2540             DPRINTF(("Sent ack for all events lower or equal %d\n",
2541                      (sge_evc->next_event - 1)));
2542@@ -3076,7 +3076,7 @@
2543                   do not change waiting_for because
2544                   we still wait for this number
2545                */
2546-               ERROR((SGE_EVENT, MSG_EVENT_EVENTSWITHNOINCREASINGNUMBERS ));
2547+               ERROR((SGE_EVENT, "%s", MSG_EVENT_EVENTSWITHNOINCREASINGNUMBERS ));
2548                if (wrong_number) {
2549                   *wrong_number = j;
2550                }   
2551@@ -3153,7 +3153,7 @@
2552       ret = false;
2553    } else {
2554       if (cull_unpack_list(&pb, report_list)) {
2555-         ERROR((SGE_EVENT, MSG_LIST_FAILEDINCULLUNPACKREPORT ));
2556+         ERROR((SGE_EVENT, "%s", MSG_LIST_FAILEDINCULLUNPACKREPORT ));
2557          ret = false;
2558       }
2559       clear_packbuffer(&pb);
2560diff -Nur source/libs/evm/sge_event_master.c ../../gridengine-6.2u4/source/libs/evm/sge_event_master.c
2561--- source/libs/evm/sge_event_master.c  2009-12-01 18:52:43.000000000 +0000
2562+++ ../../gridengine-6.2u4/source/libs/evm/sge_event_master.c   2010-03-04 14:11:44.015051624 +0000
2563@@ -458,7 +458,7 @@
2564 
2565    /* check event client object structure */
2566    if (lCompListDescr(lGetElemDescr(clio), EV_Type) != 0) {
2567-      ERROR((SGE_EVENT, MSG_EVE_INCOMPLETEEVENTCLIENT));
2568+      ERROR((SGE_EVENT, "%s", MSG_EVE_INCOMPLETEEVENTCLIENT));
2569       answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2570       DRETURN(STATUS_DENIED);
2571    }
2572@@ -471,7 +471,7 @@
2573    }
2574 
2575    if (lGetBool(clio, EV_changed) && lGetList(clio, EV_subscribed) == NULL) {
2576-      ERROR((SGE_EVENT, MSG_EVE_INVALIDSUBSCRIPTION));
2577+      ERROR((SGE_EVENT, "%s", MSG_EVE_INVALIDSUBSCRIPTION));
2578       answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2579       DRETURN(STATUS_ESEMANTIC);
2580    }
2581@@ -481,7 +481,7 @@
2582 
2583    if (Event_Master_Control.is_prepare_shutdown) {
2584       sge_mutex_unlock("event_master_mutex", SGE_FUNC, __LINE__, &Event_Master_Control.mutex);
2585-      ERROR((SGE_EVENT, MSG_EVE_QMASTERISGOINGDOWN));
2586+      ERROR((SGE_EVENT, "%s", MSG_EVE_QMASTERISGOINGDOWN));
2587       answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);     
2588       DRETURN(STATUS_ESEMANTIC);
2589    }
2590@@ -525,7 +525,7 @@
2591       */
2592       if (update_func == NULL && !manop_is_manager(ruser)) {
2593          sge_mutex_unlock("event_master_mutex", SGE_FUNC, __LINE__, &Event_Master_Control.mutex);
2594-         ERROR((SGE_EVENT, MSG_WRONG_USER_FORFIXEDID ));
2595+         ERROR((SGE_EVENT, "%s", MSG_WRONG_USER_FORFIXEDID ));
2596          answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC, ANSWER_QUALITY_ERROR);
2597          DRETURN(STATUS_ESEMANTIC);
2598       }
2599@@ -728,7 +728,7 @@
2600    if (lGetBool(clio, EV_changed) && lGetList(clio, EV_subscribed) == NULL) {
2601       sge_mutex_unlock("event_master_mutex", SGE_FUNC, __LINE__, &Event_Master_Control.mutex);
2602       SGE_UNLOCK(LOCK_GLOBAL, LOCK_READ);
2603-      ERROR((SGE_EVENT, MSG_EVE_INVALIDSUBSCRIPTION));
2604+      ERROR((SGE_EVENT, "%s", MSG_EVE_INVALIDSUBSCRIPTION));
2605       DRETURN_VOID;
2606    }
2607 
2608@@ -1142,7 +1142,7 @@
2609 
2610       /* Print out a message about the event. */
2611       if (event_client_id == EV_ID_SCHEDD) {
2612-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_COM_KILLED_SCHEDULER));
2613+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_COM_KILLED_SCHEDULER));
2614       } else {
2615          SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_COM_SHUTDOWNNOTIFICATION_SUS,
2616                         lGetString(client, EV_name),
2617diff -Nur source/libs/gdi/qm_name.c ../../gridengine-6.2u4/source/libs/gdi/qm_name.c
2618--- source/libs/gdi/qm_name.c   2009-12-01 18:52:42.000000000 +0000
2619+++ ../../gridengine-6.2u4/source/libs/gdi/qm_name.c    2010-03-04 12:35:26.579053586 +0000
2620@@ -74,7 +74,7 @@
2621    if (!master_host || !master_file) {
2622       if (err_str) {
2623          if (master_host) {
2624-            sprintf(err_str, MSG_GDI_NULLPOINTERPASSED );
2625+            sprintf(err_str, "%s", MSG_GDI_NULLPOINTERPASSED );
2626          }
2627       }   
2628       DRETURN(-1);
2629diff -Nur source/libs/gdi/sge_gdi2.c ../../gridengine-6.2u4/source/libs/gdi/sge_gdi2.c
2630--- source/libs/gdi/sge_gdi2.c  2009-12-01 18:52:42.000000000 +0000
2631+++ ../../gridengine-6.2u4/source/libs/gdi/sge_gdi2.c   2010-03-04 12:34:00.086565285 +0000
2632@@ -662,7 +662,7 @@
2633    }   
2634 
2635    if (!rhost) {
2636-      ERROR((SGE_EVENT, MSG_GDI_RHOSTISNULLFORGETANYREQUEST ));
2637+      ERROR((SGE_EVENT, "%s", MSG_GDI_RHOSTISNULLFORGETANYREQUEST ));
2638       PROF_STOP_MEASUREMENT(SGE_PROF_GDI);
2639       DRETURN(-1);
2640    }
2641@@ -1207,7 +1207,7 @@
2642          handle = cl_com_get_handle("execd_handle", 0);
2643          if (handle == NULL) {
2644             ERROR((SGE_EVENT,MSG_GDI_CANT_CREATE_HANDLE_TOEXECD_S, tocomproc));
2645-            ERROR((SGE_EVENT,cl_get_error_text(commlib_error)));
2646+            ERROR((SGE_EVENT, "%s", cl_get_error_text(commlib_error)));
2647          }
2648       }
2649    }
2650@@ -1305,7 +1305,7 @@
2651          handle = cl_com_get_handle("execd_handle", 0);
2652          if (handle == NULL) {
2653             ERROR((SGE_EVENT,MSG_GDI_CANT_CREATE_HANDLE_TOEXECD_S, fromcommproc));
2654-            ERROR((SGE_EVENT,cl_get_error_text(commlib_error)));
2655+            ERROR((SGE_EVENT, "%s", cl_get_error_text(commlib_error)));
2656          }
2657       }
2658    }
2659@@ -1446,7 +1446,7 @@
2660    }
2661 
2662    if (!is_global_requested && !lepp) {
2663-      ERROR((SGE_EVENT, MSG_NULLPOINTER));
2664+      ERROR((SGE_EVENT, "%s", MSG_NULLPOINTER));
2665       lFreeElem(&hep);
2666       DRETURN(-3);
2667    }
2668@@ -1487,7 +1487,7 @@
2669    }
2670 
2671    if (!(*gepp = lGetElemHost(lp, CONF_name, SGE_GLOBAL_NAME))) {
2672-      ERROR((SGE_EVENT, MSG_CONF_NOGLOBAL));
2673+      ERROR((SGE_EVENT, "%s", MSG_CONF_NOGLOBAL));
2674       lFreeList(&lp);
2675       lFreeElem(&hep);
2676       DRETURN(-5);
2677@@ -1728,12 +1728,12 @@
2678       DRETURN(-2);
2679 
2680    case PACK_FORMAT:
2681-      ERROR((SGE_EVENT, MSG_GDI_REPORTFORMATERROR));
2682+      ERROR((SGE_EVENT, "%s", MSG_GDI_REPORTFORMATERROR));
2683       clear_packbuffer(&pb);
2684       DRETURN(-3);
2685 
2686    default:
2687-      ERROR((SGE_EVENT, MSG_GDI_REPORTUNKNOWERROR));
2688+      ERROR((SGE_EVENT, "%s", MSG_GDI_REPORTUNKNOWERROR));
2689       clear_packbuffer(&pb);
2690       DRETURN(-1);
2691    }
2692diff -Nur source/libs/gdi/sge_gdi_ctx.c ../../gridengine-6.2u4/source/libs/gdi/sge_gdi_ctx.c
2693--- source/libs/gdi/sge_gdi_ctx.c       2009-12-01 18:52:42.000000000 +0000
2694+++ ../../gridengine-6.2u4/source/libs/gdi/sge_gdi_ctx.c        2010-03-04 12:32:09.378565179 +0000
2695@@ -895,7 +895,7 @@
2696          case SCHEDD:
2697          case EXECD:
2698             {
2699-               INFO((SGE_EVENT,MSG_GDI_MULTI_THREADED_STARTUP));
2700+               INFO((SGE_EVENT, "%s", MSG_GDI_MULTI_THREADED_STARTUP));
2701                /* if SGE_DEBUG_LEVEL environment is set we use gdi log flush function */
2702                /* you can set commlib debug level with env SGE_COMMLIB_DEBUG */
2703                if (env_sge_commlib_debug != NULL) {
2704@@ -908,7 +908,7 @@
2705             break;
2706          default:
2707             {
2708-               INFO((SGE_EVENT,MSG_GDI_SINGLE_THREADED_STARTUP));
2709+               INFO((SGE_EVENT, "%s", MSG_GDI_SINGLE_THREADED_STARTUP));
2710                if (env_sge_commlib_debug != NULL) {
2711                   cl_ret = cl_com_setup_commlib(CL_NO_THREAD, CL_LOG_OFF, sge_gdi_ctx_log_flush_func);
2712                } else {
2713@@ -1168,7 +1168,7 @@
2714                      alive_back = thiz->is_alive(thiz);
2715                      cl_ret = cl_com_set_error_func(general_communication_error);
2716                      if (cl_ret != CL_RETVAL_OK) {
2717-                        ERROR((SGE_EVENT, cl_get_error_text(cl_ret)) );
2718+                        ERROR((SGE_EVENT, "%s", cl_get_error_text(cl_ret)) );
2719                      }
2720 
2721                      if (alive_back == CL_RETVAL_OK && getenv("SGE_TEST_HEARTBEAT_TIMEOUT") == NULL ) {
2722@@ -1297,7 +1297,7 @@
2723       sge_gdi_ctx_class_error(thiz, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR,
2724                 "cl_commlib_get_endpoint_status failed: "SFQ, cl_get_error_text(cl_ret));
2725    } else {
2726-      DEBUG((SGE_EVENT,MSG_GDI_QMASTER_STILL_RUNNING));   
2727+      DEBUG((SGE_EVENT, "%s", MSG_GDI_QMASTER_STILL_RUNNING));   
2728    }
2729 
2730    if (status != NULL) {
2731@@ -1967,7 +1967,7 @@
2732 
2733    if (context_ref && sge_gdi_ctx_is_setup(*context_ref)) {
2734       if (alpp_was_null) {
2735-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_GDI_GDI_ALREADY_SETUP));
2736+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_GDI_GDI_ALREADY_SETUP));
2737       } else {
2738          answer_list_add_sprintf(alpp, STATUS_EEXIST, ANSWER_QUALITY_WARNING,
2739                                  MSG_GDI_GDI_ALREADY_SETUP);
2740diff -Nur source/libs/gdi/sge_gdi_packet_internal.c ../../gridengine-6.2u4/source/libs/gdi/sge_gdi_packet_internal.c
2741--- source/libs/gdi/sge_gdi_packet_internal.c   2009-12-01 18:52:42.000000000 +0000
2742+++ ../../gridengine-6.2u4/source/libs/gdi/sge_gdi_packet_internal.c    2010-03-04 12:34:25.659054563 +0000
2743@@ -537,7 +537,7 @@
2744                                       cl_get_error_text(commlib_error)));
2745             }
2746          } else {
2747-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_GDI_SENDINGGDIREQUESTFAILED));
2748+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_GDI_SENDINGGDIREQUESTFAILED));
2749          }
2750          answer_list_add(answer_list, SGE_EVENT, STATUS_NOQMASTER, ANSWER_QUALITY_ERROR);
2751          ret = false;
2752@@ -689,7 +689,7 @@
2753       }
2754       if (gdi_mismatch) {
2755          /* For unusual errors, give more detail */
2756-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_GDI_MISMATCH_SEND_RECEIVE));
2757+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_GDI_MISMATCH_SEND_RECEIVE));
2758          answer_list_add(answer_list, SGE_EVENT, STATUS_NOQMASTER, ANSWER_QUALITY_ERROR);
2759          ret = false;
2760       }
2761diff -Nur source/libs/gdi/sge_qexec.c ../../gridengine-6.2u4/source/libs/gdi/sge_qexec.c
2762--- source/libs/gdi/sge_qexec.c 2009-12-01 18:52:42.000000000 +0000
2763+++ ../../gridengine-6.2u4/source/libs/gdi/sge_qexec.c  2010-03-04 12:35:07.038564603 +0000
2764@@ -190,7 +190,7 @@
2765 
2766    if (init_packbuffer(&pb, 1024, 0) != PACK_SUCCESS) {
2767       lFreeElem(&petrep);
2768-      sprintf(lasterror, MSG_GDI_OUTOFMEMORY);
2769+      sprintf(lasterror, "%s", MSG_GDI_OUTOFMEMORY);
2770       DRETURN(NULL);
2771    }
2772 
2773diff -Nur source/libs/gdi/sge_security.c ../../gridengine-6.2u4/source/libs/gdi/sge_security.c
2774--- source/libs/gdi/sge_security.c      2009-12-01 18:52:42.000000000 +0000
2775+++ ../../gridengine-6.2u4/source/libs/gdi/sge_security.c       2010-03-04 12:37:29.783063361 +0000
2776@@ -173,7 +173,7 @@
2777    DENTER(TOP_LAYER, "sge_ssl_setup_security_path");
2778 
2779    if (progname == NULL) {
2780-      CRITICAL((SGE_EVENT, MSG_GDI_NO_VALID_PROGRAMM_NAME));
2781+      CRITICAL((SGE_EVENT, "%s", MSG_GDI_NO_VALID_PROGRAMM_NAME));
2782       FREE(user_name);
2783       DRETURN(-1);
2784    }
2785@@ -473,7 +473,7 @@
2786 
2787    if (value == NULL) {
2788       /* This should never happen */
2789-      CRITICAL((SGE_EVENT, MSG_SEC_CERT_VERIFY_FUNC_NO_VAL));
2790+      CRITICAL((SGE_EVENT, "%s", MSG_SEC_CERT_VERIFY_FUNC_NO_VAL));
2791       DRETURN(CL_FALSE);
2792    }
2793 
2794@@ -1385,15 +1385,15 @@
2795                answer_list_add(answer_list, SGE_EVENT, STATUS_ENOIMP, ANSWER_QUALITY_ERROR);
2796             }
2797          } else {
2798-            ERROR((SGE_EVENT, MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2799+            ERROR((SGE_EVENT, "%s", MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2800             answer_list_add(answer_list, SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_ERROR);
2801          }
2802       } else {
2803-         ERROR((SGE_EVENT, MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2804+         ERROR((SGE_EVENT, "%s", MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2805          answer_list_add(answer_list, SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_ERROR);
2806       }
2807    } else {
2808-      ERROR((SGE_EVENT, MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2809+      ERROR((SGE_EVENT, "%s", MSG_GDI_FAILEDTOEXTRACTAUTHINFO));     
2810       answer_list_add(answer_list, SGE_EVENT, STATUS_ENOMGR, ANSWER_QUALITY_ERROR);
2811    }
2812    DRETURN(ret);
2813diff -Nur source/libs/japi/drmaa.c ../../gridengine-6.2u4/source/libs/japi/drmaa.c
2814--- source/libs/japi/drmaa.c    2009-12-01 18:52:46.000000000 +0000
2815+++ ../../gridengine-6.2u4/source/libs/japi/drmaa.c     2010-03-04 14:11:44.027051211 +0000
2816@@ -3885,7 +3885,7 @@
2817 
2818    /* First look for the job index placeholder.  It is illegal. */
2819    if (strstr(path, "$TASK_ID") != NULL) {
2820-         sprintf(str, MSG_DRMAA_INC_NOT_ALLOWED);
2821+sprintf(str, "%s", MSG_DRMAA_INC_NOT_ALLOWED);
2822          answer_list_add(answer_list, str, STATUS_ENOSUCHUSER,
2823                          ANSWER_QUALITY_ERROR);
2824          DRETURN(NULL);
2825diff -Nur source/libs/mir/sge_mirror.c ../../gridengine-6.2u4/source/libs/mir/sge_mirror.c
2826--- source/libs/mir/sge_mirror.c        2009-12-01 18:52:42.000000000 +0000
2827+++ ../../gridengine-6.2u4/source/libs/mir/sge_mirror.c 2010-03-04 14:11:44.015051624 +0000
2828@@ -953,10 +953,10 @@
2829          evc->ec_unsubscribe(evc, sgeE_SCHEDDMONITOR);
2830          break;
2831       case SGE_TYPE_SHUTDOWN:
2832-         ERROR((SGE_EVENT, MSG_EVENT_HAVETOHANDLEEVENTS));
2833+         ERROR((SGE_EVENT, "%s", MSG_EVENT_HAVETOHANDLEEVENTS));
2834          break;
2835       case SGE_TYPE_MARK_4_REGISTRATION:
2836-         ERROR((SGE_EVENT, MSG_EVENT_HAVETOHANDLEEVENTS));
2837+         ERROR((SGE_EVENT, "%s", MSG_EVENT_HAVETOHANDLEEVENTS));
2838          break;
2839       case SGE_TYPE_SUBMITHOST:
2840          evc->ec_unsubscribe(evc, sgeE_SUBMITHOST_LIST);
2841@@ -1062,7 +1062,7 @@
2842          lFreeList(&event_list);
2843       }
2844    } else {
2845-      WARNING((SGE_EVENT, MSG_MIRROR_QMASTERALIVETIMEOUTEXPIRED));
2846+      WARNING((SGE_EVENT, "%s", MSG_MIRROR_QMASTERALIVETIMEOUTEXPIRED));
2847       evc->ec_mark4registration(evc);
2848       ret = SGE_EM_TIMEOUT;
2849    }
2850@@ -1071,7 +1071,7 @@
2851       test_debug++;
2852       if (test_debug > 3) {
2853          test_debug = 0;
2854-         WARNING((SGE_EVENT, MSG_MIRROR_QMASTERALIVETIMEOUTEXPIRED));
2855+         WARNING((SGE_EVENT, "%s", MSG_MIRROR_QMASTERALIVETIMEOUTEXPIRED));
2856          evc->ec_mark4registration(evc);
2857          ret = SGE_EM_TIMEOUT;
2858       }
2859diff -Nur source/libs/sched/sge_select_queue.c ../../gridengine-6.2u4/source/libs/sched/sge_select_queue.c
2860--- source/libs/sched/sge_select_queue.c        2009-12-01 18:52:44.000000000 +0000
2861+++ ../../gridengine-6.2u4/source/libs/sched/sge_select_queue.c 2010-03-04 14:11:44.023053200 +0000
2862@@ -343,7 +343,7 @@
2863       DRETURN(DISPATCH_MISSING_ATTR);
2864    }
2865 
2866-   CRITICAL((SGE_EVENT, MSG_JOBMATCHINGUNEXPECTEDRESULT));
2867+   CRITICAL((SGE_EVENT, "%s", MSG_JOBMATCHINGUNEXPECTEDRESULT));
2868    DRETURN(DISPATCH_NEVER);
2869 }
2870 
2871@@ -897,7 +897,7 @@
2872    /* --- prepare the posible slots for the binary search */
2873    max_slotsp = (max_slots - min_slots+1);
2874    if (!add_pe_slots_to_category(&use_category, &max_slotsp, pe, min_slots, max_slots, pe_range)) {
2875-      ERROR((SGE_EVENT, MSG_SGETEXT_NOMEM));
2876+      ERROR((SGE_EVENT, "%s", MSG_SGETEXT_NOMEM));
2877       DRETURN(DISPATCH_NEVER_CAT);
2878    }
2879    if (max_slotsp == 0) {
2880@@ -6378,7 +6378,7 @@
2881 
2882 error:
2883    DPRINTF(("error in sge_create_load_list!"));
2884-   ERROR((SGE_EVENT, MSG_SGETEXT_CONSUMABLE_AS_LOAD));
2885+   ERROR((SGE_EVENT, "%s", MSG_SGETEXT_CONSUMABLE_AS_LOAD));
2886    sge_free_load_list(load_list);
2887    DRETURN_VOID;
2888 
2889diff -Nur source/libs/sched/sge_ssi.c ../../gridengine-6.2u4/source/libs/sched/sge_ssi.c
2890--- source/libs/sched/sge_ssi.c 2009-12-01 18:52:43.000000000 +0000
2891+++ ../../gridengine-6.2u4/source/libs/sched/sge_ssi.c  2010-03-04 14:11:44.023053200 +0000
2892@@ -202,7 +202,7 @@
2893       lListElem *queue, *granted_queue;
2894 
2895       if(tasks[i].host_name == NULL) {
2896-         ERROR((SGE_EVENT, MSG_SSI_MISSINGHOSTNAMEINTASKLIST));
2897+         ERROR((SGE_EVENT, "%s", MSG_SSI_MISSINGHOSTNAMEINTASKLIST));
2898          DRETURN(false);
2899       }
2900 
2901diff -Nur source/libs/sgeobj/config.c ../../gridengine-6.2u4/source/libs/sgeobj/config.c
2902--- source/libs/sgeobj/config.c 2009-12-01 18:52:46.000000000 +0000
2903+++ ../../gridengine-6.2u4/source/libs/sgeobj/config.c  2010-02-25 21:52:13.197151632 +0000
2904@@ -749,7 +749,7 @@
2905    }
2906   
2907    if(!uval) {
2908-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_GDI_CONFIGINVALIDQUEUESPECIFIED ));
2909+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_GDI_CONFIGINVALIDQUEUESPECIFIED ));
2910       answer_list_add(alpp, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
2911       DEXIT;
2912       return false;
2913diff -Nur source/libs/sgeobj/sge_answer.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_answer.c
2914--- source/libs/sgeobj/sge_answer.c     2009-12-01 18:52:45.000000000 +0000
2915+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_answer.c      2010-02-25 22:11:45.273656561 +0000
2916@@ -1015,19 +1015,19 @@
2917 
2918    switch (lGetUlong(answer, AN_quality)) {
2919       case ANSWER_QUALITY_CRITICAL:
2920-         CRITICAL((SGE_EVENT, lGetString(answer, AN_text)));
2921+         CRITICAL((SGE_EVENT, "%s", lGetString(answer, AN_text)));
2922          ret = true;
2923          break;
2924       case ANSWER_QUALITY_ERROR:
2925-         ERROR((SGE_EVENT, lGetString(answer, AN_text)));
2926+         ERROR((SGE_EVENT, "%s", lGetString(answer, AN_text)));
2927          ret = true;
2928          break;
2929       case ANSWER_QUALITY_WARNING:
2930-         WARNING((SGE_EVENT, lGetString(answer, AN_text)));
2931+         WARNING((SGE_EVENT, "%s", lGetString(answer, AN_text)));
2932          break;
2933       case ANSWER_QUALITY_INFO:
2934          if (show_info) {
2935-            INFO((SGE_EVENT, lGetString(answer, AN_text)));
2936+            INFO((SGE_EVENT, "%s", lGetString(answer, AN_text)));
2937          }
2938          break;
2939       default:
2940diff -Nur source/libs/sgeobj/sge_attr.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_attr.c
2941--- source/libs/sgeobj/sge_attr.c       2009-12-01 18:52:45.000000000 +0000
2942+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_attr.c        2010-02-25 21:55:04.725651229 +0000
2943@@ -414,7 +414,7 @@
2944          if (ambiguous_href_list != NULL &&
2945                lGetNumberOfElem(*ambiguous_href_list) >= 1 &&
2946                !(flags & HOSTATTR_ALLOW_AMBIGUITY)) {
2947-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTR_RESULTUNAMBIGUOUS_S));
2948+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTR_RESULTUNAMBIGUOUS_S));
2949             answer_list_add(answer_list, SGE_EVENT,
2950                             STATUS_ERROR1, ANSWER_QUALITY_ERROR);
2951          } else {
2952@@ -583,7 +583,7 @@
2953                /*
2954                 * Should never happen.
2955                 */
2956-               SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTR_NOCONFVALUE));
2957+               SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTR_NOCONFVALUE));
2958                answer_list_add(answer_list, SGE_EVENT,
2959                                STATUS_ERROR1, ANSWER_QUALITY_ERROR);           
2960             }
2961@@ -640,7 +640,7 @@
2962             /*
2963              * Should never happen.
2964              */
2965-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTR_NOCONFVALUE));
2966+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTR_NOCONFVALUE));
2967             answer_list_add(answer_list, SGE_EVENT,
2968                             STATUS_ERROR1, ANSWER_QUALITY_ERROR);           
2969          }
2970@@ -853,7 +853,7 @@
2971                      value[0] = '\0';
2972                      value++;
2973                   } else {
2974-                     SGE_ADD_MSG_ID(sprintf(SGE_EVENT,
2975+                     SGE_ADD_MSG_ID(sprintf(SGE_EVENT,  "%s",
2976                                             MSG_ATTR_EQUALSIGNEXPRECTED));
2977                      answer_list_add(answer_list, SGE_EVENT,
2978                                      STATUS_ERROR1, ANSWER_QUALITY_ERROR);
2979@@ -896,7 +896,7 @@
2980                }
2981             }
2982          } else {
2983-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTR_NOVALUEGIVEN));
2984+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTR_NOVALUEGIVEN));
2985             answer_list_add(answer_list, SGE_EVENT,
2986                             STATUS_ERROR1, ANSWER_QUALITY_ERROR);
2987             ret = false;
2988diff -Nur source/libs/sgeobj/sge_calendar.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_calendar.c
2989--- source/libs/sgeobj/sge_calendar.c   2009-12-01 18:52:45.000000000 +0000
2990+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_calendar.c    2010-02-25 21:58:28.241162148 +0000
2991@@ -475,7 +475,7 @@
2992             state = is_week_entry_active(new_tm, week_entry, limit, next_state, rec_count++);
2993          }
2994          else {
2995-            ERROR((SGE_EVENT, MSG_CALENDAR_CALCTERMINATED));
2996+            ERROR((SGE_EVENT, "%s", MSG_CALENDAR_CALCTERMINATED));
2997          }
2998 
2999          lFreeElem(&new_tm);
3000@@ -1293,7 +1293,7 @@
3001          DRETURN(-1);
3002       }
3003    } else {
3004-      sprintf(parse_error, MSG_ANSWER_GOTEQUALWITHOUTDAYTIMERANGEORSTATE );
3005+      sprintf(parse_error, "%s", MSG_ANSWER_GOTEQUALWITHOUTDAYTIMERANGEORSTATE );
3006       goto ERROR;
3007    }
3008 
3009@@ -1402,7 +1402,7 @@
3010          DRETURN(-1);
3011       }   
3012       if (tm_yday_cmp(t1, t2)>0) {
3013-         sprintf(parse_error, MSG_ANSWER_FIRSTYESTERDAYINRANGEMUSTBEBEFORESECONDYESTERDAY);
3014+         sprintf(parse_error, "%s", MSG_ANSWER_FIRSTYESTERDAYINRANGEMUSTBEBEFORESECONDYESTERDAY);
3015          lFreeElem(&t1);
3016          DRETURN(-1);   
3017       }
3018@@ -1442,7 +1442,7 @@
3019    }
3020 
3021    if (scan(NULL, NULL)!=DOT) {   
3022-      sprintf(parse_error, MSG_PARSE_MISSINGPOINTAFTERDAY);
3023+      sprintf(parse_error, "%s", MSG_PARSE_MISSINGPOINTAFTERDAY);
3024       DRETURN(-1);
3025    }
3026    eat_token();
3027@@ -1452,7 +1452,7 @@
3028    }
3029 
3030    if (scan(NULL, NULL)!=DOT) {   
3031-      sprintf(parse_error, MSG_PARSE_MISSINGPOINTAFTERMONTH );
3032+      sprintf(parse_error, "%s", MSG_PARSE_MISSINGPOINTAFTERMONTH );
3033       DRETURN(-1);
3034    }
3035    eat_token();
3036@@ -1634,7 +1634,7 @@
3037       goto ERROR;
3038    }
3039    if (scan(NULL, NULL)!=MINUS) {
3040-      sprintf(parse_error, MSG_PARSE_MISSINGDASHINDAYTIMERANGE);   
3041+      sprintf(parse_error, "%s", MSG_PARSE_MISSINGDASHINDAYTIMERANGE);   
3042       goto ERROR;
3043    }
3044    eat_token();
3045@@ -1642,7 +1642,7 @@
3046       goto ERROR;
3047    }
3048    if (!tm_daytime_cmp(t1, t2)) {
3049-      sprintf(parse_error, MSG_PARSE_RANGEBEGISEQUALTOEND);   
3050+      sprintf(parse_error, "%s", MSG_PARSE_RANGEBEGISEQUALTOEND);   
3051       goto ERROR;
3052    }
3053 
3054@@ -1703,7 +1703,7 @@
3055 SUCCESS:
3056    if (h==24) {
3057       if (m || s) {
3058-         sprintf(parse_error, MSG_PARSE_DAYTIMESBEYOND24HNOTALLOWED);
3059+         sprintf(parse_error, "%s", MSG_PARSE_DAYTIMESBEYOND24HNOTALLOWED);
3060          DRETURN(-1);
3061       }
3062    }
3063@@ -1804,7 +1804,7 @@
3064 
3065    /* complain about still unused tokens */
3066    if (scan(NULL, NULL)!=NO_TOKEN) {
3067-      sprintf(parse_error, MSG_PARSE_UNRECOGNIZEDTOKENATEND);
3068+      sprintf(parse_error, "%s", MSG_PARSE_UNRECOGNIZEDTOKENATEND);
3069       goto ERROR;
3070    }
3071 
3072@@ -1857,7 +1857,7 @@
3073          goto ERROR;
3074       }   
3075    } else {
3076-      sprintf(parse_error, MSG_ANSWER_GOTEQUALWITHOUTDAYTIMERANGEORSTATE);
3077+      sprintf(parse_error, "%s", MSG_ANSWER_GOTEQUALWITHOUTDAYTIMERANGEORSTATE);
3078       goto ERROR;
3079    }
3080 
3081@@ -2153,7 +2153,7 @@
3082          goto ERROR;
3083 
3084       if (tm_wday_cmp(t1, t2)==0) {
3085-         sprintf(parse_error, MSG_PARSE_FOUNDUSELESSWEEKDAYRANGE);
3086+         sprintf(parse_error, "%s", MSG_PARSE_FOUNDUSELESSWEEKDAYRANGE);
3087          goto ERROR;
3088       }
3089    }
3090@@ -2204,7 +2204,7 @@
3091    DENTER(TOP_LAYER, "week_day");
3092 
3093    if (scan(NULL, NULL)!=STRING) {
3094-      sprintf(parse_error, MSG_PARSE_EXPECTEDSTRINGFORWEEKDAY);
3095+      sprintf(parse_error, "%s", MSG_PARSE_EXPECTEDSTRINGFORWEEKDAY);
3096       DRETURN(-1);
3097    }
3098    s = get_string();
3099@@ -2286,7 +2286,7 @@
3100                      for (j=0; t[j] && isdigit((int) t[j]); j++) {
3101                         number =  old_number * 10 + (t[j]-'0');
3102                         if (number<old_number) {
3103-                           ERROR((SGE_EVENT, MSG_PARSE_OVERFLOWERRORWHILEPARSING));
3104+                           ERROR((SGE_EVENT, "%s", MSG_PARSE_OVERFLOWERRORWHILEPARSING));
3105                            token = ERR_TOKEN;
3106                            token_is_valid = 1;
3107                            DRETURN(token);
3108diff -Nur source/libs/sgeobj/sge_centry.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_centry.c
3109--- source/libs/sgeobj/sge_centry.c     2009-12-01 18:52:45.000000000 +0000
3110+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_centry.c      2010-02-25 21:59:13.597661922 +0000
3111@@ -878,7 +878,7 @@
3112    /* allocate space for attribute list if no list is passed */
3113    if (complex_attributes == NULL) {
3114       if ((complex_attributes = lCreateList("qstat_l_requests", CE_Type)) == NULL) {
3115-         ERROR((SGE_EVENT, MSG_PARSE_NOALLOCATTRLIST));
3116+         ERROR((SGE_EVENT, "%s", MSG_PARSE_NOALLOCATTRLIST));
3117          DRETURN(NULL);
3118       }
3119    }
3120@@ -916,7 +916,7 @@
3121    /* create new element, fill in the values and append it */
3122       if ( (complex_attribute= lGetElemStr(complex_attributes, CE_name, attr)) == NULL) {
3123          if ((complex_attribute = lCreateElem(CE_Type)) == NULL) {
3124-            ERROR((SGE_EVENT, MSG_PARSE_NOALLOCATTRELEM));
3125+            ERROR((SGE_EVENT, "%s", MSG_PARSE_NOALLOCATTRELEM));
3126             lFreeList(&complex_attributes);
3127             sge_free_saved_vars(context);
3128             DRETURN(NULL);
3129diff -Nur source/libs/sgeobj/sge_conf.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_conf.c
3130--- source/libs/sgeobj/sge_conf.c       2009-12-01 18:52:45.000000000 +0000
3131+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_conf.c        2010-02-25 21:59:36.009662604 +0000
3132@@ -1045,7 +1045,7 @@
3133    lFreeList(&mlist);
3134 
3135    if (!global) {
3136-      WARNING((SGE_EVENT, MSG_CONF_NOCONFIGFROMMASTER));
3137+      WARNING((SGE_EVENT, "%s", MSG_CONF_NOCONFIGFROMMASTER));
3138       DRETURN(-2);
3139    }
3140 
3141diff -Nur source/libs/sgeobj/sge_cqueue.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_cqueue.c
3142--- source/libs/sgeobj/sge_cqueue.c     2009-12-01 18:52:45.000000000 +0000
3143+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_cqueue.c      2010-02-25 22:00:13.225162007 +0000
3144@@ -1230,7 +1230,7 @@
3145                                        cqueue_attribute_array[index].href_attr);
3146 
3147                      if (strcmp(HOSTREF_DEFAULT, attr_hostname)) {
3148-                        SGE_ADD_MSG_ID(sprintf(SGE_EVENT,
3149+                        SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s",
3150                                        MSG_CQUEUE_NONDEFNOTALLOWED));
3151                         answer_list_add(answer_list, SGE_EVENT,
3152                                         STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3153@@ -1486,7 +1486,7 @@
3154       sge_dstring_free(&host_domain_buffer);
3155    } else {
3156       if (raise_error) {
3157-         ERROR((SGE_EVENT, MSG_CQUEUE_FULLNAMEISNULL));
3158+         ERROR((SGE_EVENT, "%s", MSG_CQUEUE_FULLNAMEISNULL));
3159       }
3160    }
3161    DRETURN(ret);
3162diff -Nur source/libs/sgeobj/sge_job.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_job.c
3163--- source/libs/sgeobj/sge_job.c        2009-12-01 18:52:45.000000000 +0000
3164+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_job.c 2010-02-25 22:02:08.709663041 +0000
3165@@ -1165,11 +1165,11 @@
3166    DENTER(TOP_LAYER, "job_list_add_job");
3167 
3168    if (!job_list) {
3169-      ERROR((SGE_EVENT, MSG_JOB_JLPPNULL));
3170+      ERROR((SGE_EVENT, "%s", MSG_JOB_JLPPNULL));
3171       DRETURN(1);
3172    }
3173    if (!job) {
3174-      ERROR((SGE_EVENT, MSG_JOB_JEPNULL));
3175+      ERROR((SGE_EVENT, "%s", MSG_JOB_JEPNULL));
3176       DRETURN(1);
3177    }
3178 
3179@@ -1908,7 +1908,7 @@
3180             if (field[i] != JB_ja_structure)
3181                range_correct_end(range);
3182             if (range_is_id_within(range, 0)) {
3183-               ERROR((SGE_EVENT, MSG_JOB_NULLNOTALLOWEDT));
3184+               ERROR((SGE_EVENT, "%s", MSG_JOB_NULLNOTALLOWEDT));
3185                answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN,
3186                                ANSWER_QUALITY_ERROR);
3187                DRETURN_VOID;
3188@@ -1943,7 +1943,7 @@
3189       }
3190       has_structure = !range_list_is_empty(lGetList(job, JB_ja_structure));
3191       if (!has_structure) {
3192-         ERROR((SGE_EVENT, MSG_JOB_NOIDNOTALLOWED));
3193+         ERROR((SGE_EVENT, "%s", MSG_JOB_NOIDNOTALLOWED));
3194          answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN,
3195                          ANSWER_QUALITY_ERROR);
3196          DRETURN_VOID;
3197@@ -2609,7 +2609,7 @@
3198             answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3199             ret_error=true;
3200          } else if (res != CL_RETVAL_PARAMS) {
3201-            ERROR((SGE_EVENT,MSG_PARSE_NULLPOINTERRECEIVED ));
3202+            ERROR((SGE_EVENT, "%s", MSG_PARSE_NULLPOINTERRECEIVED ));
3203             answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3204             ret_error=true;
3205          }
3206@@ -2626,13 +2626,13 @@
3207 
3208             if(hostname == NULL){
3209                if(temp_hostname == NULL){
3210-                  ERROR((SGE_EVENT, MSG_PARSE_DUPLICATEHOSTINFILESPEC));
3211+                  ERROR((SGE_EVENT, "%s", MSG_PARSE_DUPLICATEHOSTINFILESPEC));
3212                   answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3213                   ret_error=true;
3214                }
3215             }
3216             else if( temp_hostname && strcmp(hostname, temp_hostname)==0){
3217-               ERROR((SGE_EVENT, MSG_PARSE_DUPLICATEHOSTINFILESPEC));
3218+               ERROR((SGE_EVENT, "%s", MSG_PARSE_DUPLICATEHOSTINFILESPEC));
3219                answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3220                ret_error=true;
3221             }
3222diff -Nur source/libs/sgeobj/sge_jsv_script.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_jsv_script.c
3223--- source/libs/sgeobj/sge_jsv_script.c 2009-12-01 18:52:45.000000000 +0000
3224+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_jsv_script.c  2010-02-25 22:02:42.177669011 +0000
3225@@ -2507,7 +2507,7 @@
3226             /*
3227              * JSV is active but no modification allowed
3228              */
3229-            ERROR((SGE_EVENT, MSG_JSV_ALLOWED));
3230+            ERROR((SGE_EVENT, "%s", MSG_JSV_ALLOWED));
3231             answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3232             ret = true;
3233          }
3234diff -Nur source/libs/sgeobj/sge_pack.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_pack.c
3235--- source/libs/sgeobj/sge_pack.c       2009-12-01 18:52:45.000000000 +0000
3236+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_pack.c        2010-02-25 22:03:37.773153754 +0000
3237@@ -69,7 +69,7 @@
3238    if (lGetUlong(where, PACK_id) == SGE_WHERE) {
3239       size = getByteArray(&buffer, where, PACK_string);
3240       if (size <= 0){
3241-         ERROR((SGE_EVENT, MSG_PACK_INVALIDPACKDATA ));
3242+         ERROR((SGE_EVENT, "%s", MSG_PACK_INVALIDPACKDATA ));
3243       } else if ((ret = init_packbuffer_from_buffer(&pb, buffer, size)) == PACK_SUCCESS) {
3244          cull_unpack_cond(&pb, &cond);
3245          clear_packbuffer(&pb);
3246@@ -117,7 +117,7 @@
3247    if (lGetUlong(what, PACK_id) == SGE_WHAT) {
3248       size = getByteArray(&buffer, what, PACK_string);
3249       if (size <= 0){
3250-         ERROR((SGE_EVENT, MSG_PACK_INVALIDPACKDATA ));
3251+         ERROR((SGE_EVENT, "%s", MSG_PACK_INVALIDPACKDATA ));
3252       } else if ((ret = init_packbuffer_from_buffer(&pb, buffer, size)) == PACK_SUCCESS) {
3253          cull_unpack_enum(&pb, &cond);
3254          clear_packbuffer(&pb);
3255diff -Nur source/libs/sgeobj/sge_qref.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_qref.c
3256--- source/libs/sgeobj/sge_qref.c       2009-12-01 18:52:45.000000000 +0000
3257+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_qref.c        2010-02-25 22:04:00.121662044 +0000
3258@@ -815,7 +815,7 @@
3259             }
3260          }
3261       } else {
3262-         ERROR((SGE_EVENT, MSG_QREF_QNOTREQUESTABLE));
3263+         ERROR((SGE_EVENT, "%s", MSG_QREF_QNOTREQUESTABLE));
3264          answer_list_add(answer_list, SGE_EVENT,
3265                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3266          ret = false;
3267diff -Nur source/libs/sgeobj/sge_range.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_range.c
3268--- source/libs/sgeobj/sge_range.c      2009-12-01 18:52:45.000000000 +0000
3269+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_range.c       2010-02-25 22:04:47.513650984 +0000
3270@@ -1694,7 +1694,7 @@
3271                      DRETURN_VOID;
3272                   }
3273                   else {
3274-                     sprintf( msg, MSG_GDI_NEGATIVSTEP );
3275+                     sprintf( msg, "%s", MSG_GDI_NEGATIVSTEP );
3276                      answer_list_add(answer_list, msg, STATUS_ESYNTAX,
3277                                      ANSWER_QUALITY_ERROR);
3278                      lFreeElem(&r);
3279@@ -1769,7 +1769,7 @@
3280         s; s = sge_strtok_r(NULL, RANGE_SEPARATOR_CHARS, &context)) {
3281       if (!first && undefined) {
3282          /* first was undefined - no more ranges allowed */
3283-         ERROR((SGE_EVENT, MSG_GDI_UNEXPECTEDRANGEFOLLOWINGUNDEFINED));
3284+         ERROR((SGE_EVENT, "%s", MSG_GDI_UNEXPECTEDRANGEFOLLOWINGUNDEFINED));
3285          sge_free_saved_vars(context);
3286          answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX,
3287                          ANSWER_QUALITY_ERROR);
3288@@ -1785,7 +1785,7 @@
3289             undefined = true;
3290          } else {
3291             /* second range may not be undefined ! */
3292-            ERROR((SGE_EVENT, MSG_GDI_UNEXPECTEDUNDEFINEDFOLLOWINGRANGE));
3293+            ERROR((SGE_EVENT, "%s", MSG_GDI_UNEXPECTEDUNDEFINEDFOLLOWINGRANGE));
3294             sge_free_saved_vars(context);
3295             answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX,
3296                             ANSWER_QUALITY_ERROR);
3297diff -Nur source/libs/sgeobj/sge_resource_quota.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_resource_quota.c
3298--- source/libs/sgeobj/sge_resource_quota.c     2009-12-01 18:52:46.000000000 +0000
3299+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_resource_quota.c      2010-02-25 22:03:06.425162622 +0000
3300@@ -106,7 +106,7 @@
3301       /* We have a expanded list */
3302       lSetBool(tmp_filter, RQRF_expand, true);
3303       if (buffer[strlen(buffer)-1] != '}') {
3304-         ERROR((SGE_EVENT, MSG_RESOURCEQUOTA_NOVALIDEXPANDEDLIST));
3305+         ERROR((SGE_EVENT, "%s", MSG_RESOURCEQUOTA_NOVALIDEXPANDEDLIST));
3306          answer_list_add(alp, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
3307          DRETURN(false);
3308       }
3309diff -Nur source/libs/sgeobj/sge_schedd_conf.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_schedd_conf.c
3310--- source/libs/sgeobj/sge_schedd_conf.c        2009-12-01 18:52:45.000000000 +0000
3311+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_schedd_conf.c 2010-02-25 22:07:23.361162096 +0000
3312@@ -571,7 +571,7 @@
3313       } else {
3314          *master_sconf_list = store;
3315          if (!*master_sconf_list) {
3316-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_USE_DEFAULT_CONFIG));
3317+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_USE_DEFAULT_CONFIG));
3318             answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_WARNING);
3319 
3320             *master_sconf_list = lCreateList("schedd config list", SC_Type);
3321@@ -2579,7 +2579,7 @@
3322    DENTER(TOP_LAYER, "sconf_print_config");
3323 
3324    if (!sconf_is()){
3325-      ERROR((SGE_EVENT, MSG_SCONF_NO_CONFIG));
3326+      ERROR((SGE_EVENT, "%s", MSG_SCONF_NO_CONFIG));
3327       DRETURN_VOID;
3328    }
3329 
3330@@ -2815,7 +2815,7 @@
3331    pos.new_config = true;
3332   
3333    if (!calc_pos()){
3334-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_INCOMPLETE_SCHEDD_CONFIG));
3335+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_INCOMPLETE_SCHEDD_CONFIG));
3336       answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
3337       ret = false;
3338    }
3339@@ -2912,7 +2912,7 @@
3340       const char *schedd_info = lGetString(lFirst(*(object_type_get_master_list(SGE_TYPE_SCHEDD_CONF))), SC_schedd_job_info);
3341 
3342       if (schedd_info == NULL){
3343-         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTRIB_SCHEDDJOBINFONOVALIDPARAM ));
3344+         SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTRIB_SCHEDDJOBINFONOVALIDPARAM ));
3345          answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR); 
3346          ret = false;
3347       }
3348@@ -2928,7 +2928,7 @@
3349          else if (!strcmp("job_list", key))
3350             ikey = SCHEDD_JOB_INFO_JOB_LIST;
3351          else {
3352-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTRIB_SCHEDDJOBINFONOVALIDPARAM ));
3353+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTRIB_SCHEDDJOBINFONOVALIDPARAM ));
3354             answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
3355             ret = false;
3356          }
3357@@ -2939,7 +2939,7 @@
3358                                          INF_NOT_ALLOWED);
3359             if (rlp == NULL) {
3360                lFreeList(&alp);
3361-               SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_ATTRIB_SCHEDDJOBINFONOVALIDJOBLIST));
3362+               SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_ATTRIB_SCHEDDJOBINFONOVALIDJOBLIST));
3363                answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);
3364                ret = false;
3365             }   
3366@@ -3050,7 +3050,7 @@
3367       else {
3368          /* ensure we get a non-zero/non-infinity duration default in reservation scheduling mode */
3369          if (max_reservation != 0 && uval == 0) {
3370-            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_RR_REQUIRES_DEFAULT_DURATION));   
3371+            SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_RR_REQUIRES_DEFAULT_DURATION));   
3372             answer_list_add(answer_list, SGE_EVENT, STATUS_ESYNTAX, ANSWER_QUALITY_ERROR);     
3373             ret = false;
3374          }
3375diff -Nur source/libs/sgeobj/sge_ulong.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_ulong.c
3376--- source/libs/sgeobj/sge_ulong.c      2009-12-01 18:52:45.000000000 +0000
3377+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_ulong.c       2010-02-25 22:10:23.809162326 +0000
3378@@ -272,7 +272,7 @@
3379    memset(tmp_str, 0, sizeof(tmp_str));
3380 
3381    if (!string || string[0] == '\0') {
3382-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_NODATE));
3383+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_NODATE));
3384       if (answer_list) {
3385          answer_list_add(answer_list, SGE_EVENT,
3386                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3387@@ -285,7 +285,7 @@
3388    }
3389 
3390    if (strlen(string) > sizeof(stringT)) {
3391-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_STARTTIMETOOLONG));
3392+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_STARTTIMETOOLONG));
3393       if (answer_list) {
3394          answer_list_add(answer_list, SGE_EVENT,
3395                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3396@@ -309,7 +309,7 @@
3397 
3398    if ((i != 0) && (i != 2)) {
3399       sge_free_saved_vars(context);
3400-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDSECONDS));
3401+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDSECONDS));
3402       if (answer_list) {
3403          answer_list_add(answer_list, SGE_EVENT,
3404                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3405@@ -325,7 +325,7 @@
3406 
3407    if ((i != 8) && (i != 10) && (i != 12)) {
3408       sge_free_saved_vars(context);
3409-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDHOURMIN));
3410+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDHOURMIN));
3411       if (answer_list) {
3412          answer_list_add(answer_list, SGE_EVENT,
3413                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3414@@ -369,7 +369,7 @@
3415    timeptr.tm_mon=atoi(tmp_str)-1;/* 00==Jan, we don't like that do we */
3416    if ((timeptr.tm_mon>11)||(timeptr.tm_mon<0)) {
3417       sge_free_saved_vars(context);
3418-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDMONTH));
3419+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDMONTH));
3420       if (answer_list) {
3421          answer_list_add(answer_list, SGE_EVENT,
3422                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3423@@ -392,7 +392,7 @@
3424    if ((timeptr.tm_mday > 31) || (timeptr.tm_mday < 1)) {
3425       /* actually mktime() should frigging do it */
3426       sge_free_saved_vars(context);
3427-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDDAY));
3428+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDDAY));
3429       if (answer_list) {
3430          answer_list_add(answer_list, SGE_EVENT,
3431                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3432@@ -410,7 +410,7 @@
3433    non_seconds+=2;
3434 
3435    if ((timeptr.tm_hour > 23) || (timeptr.tm_hour < 0)) {
3436-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDHOUR));
3437+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDHOUR));
3438       if (answer_list) {
3439          answer_list_add(answer_list, SGE_EVENT,
3440                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3441@@ -428,7 +428,7 @@
3442 
3443    if ((timeptr.tm_min > 59)||(timeptr.tm_min < 0)) {
3444       sge_free_saved_vars(context);
3445-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDMINUTE));
3446+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDMINUTE));
3447       if (answer_list) {
3448          answer_list_add(answer_list, SGE_EVENT,
3449                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3450@@ -445,7 +445,7 @@
3451    }
3452    if ((timeptr.tm_sec>59)||(timeptr.tm_mday<0)) {
3453       sge_free_saved_vars(context);
3454-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_INVALIDSECOND));
3455+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_INVALIDSECOND));
3456       if (answer_list) {
3457          answer_list_add(answer_list, SGE_EVENT,
3458                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3459@@ -468,7 +468,7 @@
3460 
3461    if (gmt_secs < 0) {
3462       sge_free_saved_vars(context);
3463-      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, MSG_PARSE_NODATEFROMINPUT));
3464+      SGE_ADD_MSG_ID(sprintf(SGE_EVENT, "%s", MSG_PARSE_NODATEFROMINPUT));
3465       if (answer_list) {
3466          answer_list_add(answer_list, SGE_EVENT,
3467                          STATUS_EUNKNOWN, ANSWER_QUALITY_ERROR);
3468diff -Nur source/libs/sgeobj/sge_userset.c ../../gridengine-6.2u4/source/libs/sgeobj/sge_userset.c
3469--- source/libs/sgeobj/sge_userset.c    2009-12-01 18:52:45.000000000 +0000
3470+++ ../../gridengine-6.2u4/source/libs/sgeobj/sge_userset.c     2010-02-25 22:10:52.857151598 +0000
3471@@ -279,7 +279,7 @@
3472 
3473    for_each(ep, lGetList(userset, US_entries)) {
3474       if (!lGetPosString(ep, name_pos)) {
3475-         ERROR((SGE_EVENT, MSG_US_INVALIDUSERNAME));
3476+         ERROR((SGE_EVENT, "%s", MSG_US_INVALIDUSERNAME));
3477          answer_list_add(alpp, SGE_EVENT, STATUS_ESEMANTIC,
3478                          ANSWER_QUALITY_ERROR);
3479          DRETURN(STATUS_ESEMANTIC);
3480diff -Nur source/libs/uti/config_file.c ../../gridengine-6.2u4/source/libs/uti/config_file.c
3481--- source/libs/uti/config_file.c       2009-12-01 18:52:42.000000000 +0000
3482+++ ../../gridengine-6.2u4/source/libs/uti/config_file.c        2010-03-03 15:27:15.882566288 +0000
3483@@ -440,7 +440,7 @@
3484          }
3485 
3486          if (name_len==0) {
3487-            sprintf(err_str, MSG_CONF_ATLEASTONECHAR);
3488+            sprintf(err_str, "%s", MSG_CONF_ATLEASTONECHAR);
3489             if (config_errfunc)
3490                config_errfunc(err_str);
3491             return 1;
3492diff -Nur source/libs/uti/setup_path.c ../../gridengine-6.2u4/source/libs/uti/setup_path.c
3493--- source/libs/uti/setup_path.c        2009-12-01 18:52:42.000000000 +0000
3494+++ ../../gridengine-6.2u4/source/libs/uti/setup_path.c 2010-03-03 15:27:38.358564398 +0000
3495@@ -348,7 +348,7 @@
3496    cell_root = sge_malloc(strlen(sge_root) + strlen(sge_cell) + 2);
3497    if (cell_root == NULL) {
3498       if (error_dstring == NULL) {
3499-         CRITICAL((SGE_EVENT, MSG_SGETEXT_NOMEM));
3500+         CRITICAL((SGE_EVENT, "%s", MSG_SGETEXT_NOMEM));
3501          SGE_EXIT(NULL, 1);
3502       } else {
3503          sge_dstring_copy_string(error_dstring, MSG_SGETEXT_NOMEM);
3504diff -Nur source/libs/uti/sge_arch.c ../../gridengine-6.2u4/source/libs/uti/sge_arch.c
3505--- source/libs/uti/sge_arch.c  2009-12-01 18:52:42.000000000 +0000
3506+++ ../../gridengine-6.2u4/source/libs/uti/sge_arch.c   2010-03-03 15:28:04.662564483 +0000
3507@@ -140,7 +140,7 @@
3508       if (buffer != NULL) {
3509          sge_strlcpy(buffer, MSG_SGEROOTNOTSET, size);
3510       } else {
3511-         CRITICAL((SGE_EVENT, MSG_SGEROOTNOTSET));
3512+         CRITICAL((SGE_EVENT, "%s", MSG_SGEROOTNOTSET));
3513       }
3514    }
3515 
3516@@ -240,7 +240,7 @@
3517 
3518    len = strlen(sge_root) + strlen(sge_cell) + strlen(COMMON_DIR) + strlen(ALIAS_FILE) + 5;
3519    if (!(cp = malloc(len))) {
3520-      CRITICAL((SGE_EVENT, MSG_MEMORY_MALLOCFAILEDFORPATHTOHOSTALIASFILE ));
3521+      CRITICAL((SGE_EVENT, "%s", MSG_MEMORY_MALLOCFAILEDFORPATHTOHOSTALIASFILE ));
3522       SGE_EXIT(NULL, 1);
3523    }
3524 
3525diff -Nur source/libs/uti/sge_bootstrap.c ../../gridengine-6.2u4/source/libs/uti/sge_bootstrap.c
3526--- source/libs/uti/sge_bootstrap.c     2009-12-01 18:52:42.000000000 +0000
3527+++ ../../gridengine-6.2u4/source/libs/uti/sge_bootstrap.c      2010-03-03 15:28:19.634564290 +0000
3528@@ -469,7 +469,7 @@
3529    /* get filepath of bootstrap file */
3530    if (bootstrap_file == NULL) {
3531       if (error_dstring == NULL) {
3532-         CRITICAL((SGE_EVENT, MSG_UTI_CANNOTRESOLVEBOOTSTRAPFILE));
3533+         CRITICAL((SGE_EVENT, "%s", MSG_UTI_CANNOTRESOLVEBOOTSTRAPFILE));
3534       } else {
3535          sge_dstring_sprintf(error_dstring, MSG_UTI_CANNOTRESOLVEBOOTSTRAPFILE);
3536       }
3537diff -Nur source/libs/uti/sge_csp_path.c ../../gridengine-6.2u4/source/libs/uti/sge_csp_path.c
3538--- source/libs/uti/sge_csp_path.c      2009-12-01 18:52:42.000000000 +0000
3539+++ ../../gridengine-6.2u4/source/libs/uti/sge_csp_path.c       2010-03-03 15:28:35.295064248 +0000
3540@@ -151,7 +151,7 @@
3541 
3542    if (value == NULL) {
3543       /* This should never happen */
3544-      CRITICAL((SGE_EVENT, MSG_SEC_CERT_VERIFY_FUNC_NO_VAL));
3545+      CRITICAL((SGE_EVENT, "%s", MSG_SEC_CERT_VERIFY_FUNC_NO_VAL));
3546       DEXIT;
3547       return CL_FALSE;
3548    }
3549diff -Nur source/libs/uti/sge_edit.c ../../gridengine-6.2u4/source/libs/uti/sge_edit.c
3550--- source/libs/uti/sge_edit.c  2009-12-01 18:52:42.000000000 +0000
3551+++ ../../gridengine-6.2u4/source/libs/uti/sge_edit.c   2010-03-04 15:50:13.210565253 +0000
3552@@ -54,7 +54,7 @@
3553    DENTER(TOP_LAYER, "sge_edit");;
3554 
3555    if (fname == NULL) {
3556-      ERROR((SGE_EVENT, MSG_NULLPOINTER));
3557+      ERROR((SGE_EVENT, "%s", MSG_NULLPOINTER));
3558       return -1;
3559    }
3560 
3561diff -Nur source/libs/uti/sge_monitor.c ../../gridengine-6.2u4/source/libs/uti/sge_monitor.c
3562--- source/libs/uti/sge_monitor.c       2009-12-01 18:52:42.000000000 +0000
3563+++ ../../gridengine-6.2u4/source/libs/uti/sge_monitor.c        2010-03-03 15:26:52.786554215 +0000
3564@@ -236,7 +236,7 @@
3565    monitor->output_line2 = (dstring*) malloc(sizeof(dstring));
3566   
3567    if (monitor->output_line1 == NULL || monitor->output_line2 == NULL) {
3568-      CRITICAL((SGE_EVENT, MSG_UTI_MONITOR_MEMERROR));
3569+      CRITICAL((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROR));
3570       exit(1);
3571    }
3572 
3573@@ -257,7 +257,7 @@
3574                monitor->ext_output = &ext_sch_output;
3575             } else {
3576                monitor->ext_type = NONE_EXT;
3577-               ERROR((SGE_EVENT, MSG_UTI_MONITOR_MEMERROREXT));
3578+               ERROR((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROREXT));
3579             }
3580          break;
3581 
3582@@ -269,7 +269,7 @@
3583                monitor->ext_output = &ext_gdi_output;
3584             } else {
3585                monitor->ext_type = NONE_EXT;
3586-               ERROR((SGE_EVENT, MSG_UTI_MONITOR_MEMERROREXT));
3587+               ERROR((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROREXT));
3588             }
3589          break;
3590 
3591@@ -281,7 +281,7 @@
3592                monitor->ext_output = &ext_lis_output;
3593             } else {
3594                monitor->ext_type = NONE_EXT;
3595-               ERROR((SGE_EVENT, MSG_UTI_MONITOR_MEMERROREXT));
3596+               ERROR((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROREXT));
3597             }
3598          break;
3599         
3600@@ -293,7 +293,7 @@
3601                monitor->ext_output = &ext_edt_output;
3602             } else {
3603                monitor->ext_type = NONE_EXT;
3604-               ERROR((SGE_EVENT, MSG_UTI_MONITOR_MEMERROREXT));
3605+               ERROR((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROREXT));
3606             }
3607          break;
3608       
3609@@ -305,7 +305,7 @@
3610                monitor->ext_output = &ext_tet_output;
3611             } else {
3612                monitor->ext_type = NONE_EXT;
3613-               ERROR((SGE_EVENT, MSG_UTI_MONITOR_MEMERROREXT));
3614+               ERROR((SGE_EVENT, "%s", MSG_UTI_MONITOR_MEMERROREXT));
3615             }
3616          break;
3617         
3618diff -Nur source/libs/uti/sge_os.c ../../gridengine-6.2u4/source/libs/uti/sge_os.c
3619--- source/libs/uti/sge_os.c    2009-12-01 18:52:42.000000000 +0000
3620+++ ../../gridengine-6.2u4/source/libs/uti/sge_os.c     2010-03-03 15:30:02.702554240 +0000
3621@@ -352,12 +352,12 @@
3622 
3623    /* create pipe */
3624    if ( pipe(fd_pipe) < 0) {
3625-      CRITICAL((SGE_EVENT, MSG_UTI_DAEMONIZE_CANT_PIPE));
3626+      CRITICAL((SGE_EVENT, "%s", MSG_UTI_DAEMONIZE_CANT_PIPE));
3627       DRETURN(false);
3628    }
3629 
3630    if ( fcntl(fd_pipe[0], F_SETFL, O_NONBLOCK) != 0) {
3631-      CRITICAL((SGE_EVENT, MSG_UTI_DAEMONIZE_CANT_FCNTL_PIPE));
3632+      CRITICAL((SGE_EVENT, "%s", MSG_UTI_DAEMONIZE_CANT_FCNTL_PIPE));
3633       DRETURN(false);
3634    }
3635 
3636@@ -418,13 +418,13 @@
3637 
3638       switch(exit_status) {
3639          case SGE_DEAMONIZE_OK:
3640-            INFO((SGE_EVENT, MSG_UTI_DAEMONIZE_OK));
3641+            INFO((SGE_EVENT, "%s", MSG_UTI_DAEMONIZE_OK));
3642             break;
3643          case SGE_DAEMONIZE_DEAD_CHILD:
3644-            WARNING((SGE_EVENT, MSG_UTI_DAEMONIZE_DEAD_CHILD));
3645+            WARNING((SGE_EVENT, "%s", MSG_UTI_DAEMONIZE_DEAD_CHILD));
3646             break;
3647          case SGE_DAEMONIZE_TIMEOUT:
3648-            WARNING((SGE_EVENT, MSG_UTI_DAEMONIZE_TIMEOUT));
3649+            WARNING((SGE_EVENT, "%s", MSG_UTI_DAEMONIZE_TIMEOUT));
3650             break;
3651       }
3652       /* close read pipe */
3653diff -Nur source/libs/uti/sge_stdio.c ../../gridengine-6.2u4/source/libs/uti/sge_stdio.c
3654--- source/libs/uti/sge_stdio.c 2009-12-01 18:52:42.000000000 +0000
3655+++ ../../gridengine-6.2u4/source/libs/uti/sge_stdio.c  2010-03-03 15:30:40.490564502 +0000
3656@@ -416,7 +416,7 @@
3657             DRETURN(-1);
3658          }
3659       } else {
3660-         ERROR((SGE_EVENT, MSG_UTI_MEMPWNAM));
3661+         ERROR((SGE_EVENT, "%s", MSG_UTI_MEMPWNAM));
3662          FREE(buffer);
3663          if (sge_has_admin_user()) {
3664             sge_switch2admin_user();
3665@@ -436,7 +436,7 @@
3666 
3667          if (myuid != SGE_SUPERUSER_UID) {
3668             DPRINTF(("only root is allowed to switch to a different user\n"));
3669-            ERROR((SGE_EVENT, MSG_SYSTEM_NOROOTRIGHTSTOSWITCHUSER));
3670+            ERROR((SGE_EVENT, "%s", MSG_SYSTEM_NOROOTRIGHTSTOSWITCHUSER));
3671             FREE(buffer);
3672             DRETURN(-2);
3673          }                             
3674diff -Nur source/libs/uti/sge_stdlib.c ../../gridengine-6.2u4/source/libs/uti/sge_stdlib.c
3675--- source/libs/uti/sge_stdlib.c        2009-12-01 18:52:42.000000000 +0000
3676+++ ../../gridengine-6.2u4/source/libs/uti/sge_stdlib.c 2010-03-03 15:35:16.990566440 +0000
3677@@ -74,7 +74,7 @@
3678 
3679    cp = (char *) malloc(size);
3680    if (!cp) {
3681-      CRITICAL((SGE_EVENT, MSG_MEMORY_MALLOCFAILED));
3682+      CRITICAL((SGE_EVENT, "%s", MSG_MEMORY_MALLOCFAILED));
3683       DEXIT_;
3684       abort();
3685    }
3686@@ -117,7 +117,7 @@
3687 
3688    cp = realloc(ptr, size);
3689    if (cp == NULL) {
3690-      CRITICAL((SGE_EVENT, MSG_MEMORY_REALLOCFAILED));
3691+      CRITICAL((SGE_EVENT, "%s", MSG_MEMORY_REALLOCFAILED));
3692       if (do_abort) {
3693          DEXIT;
3694          abort();
3695diff -Nur source/libs/uti/sge_string.c ../../gridengine-6.2u4/source/libs/uti/sge_string.c
3696--- source/libs/uti/sge_string.c        2009-12-01 18:52:42.000000000 +0000
3697+++ ../../gridengine-6.2u4/source/libs/uti/sge_string.c 2010-03-03 15:36:11.014566902 +0000
3698@@ -387,7 +387,7 @@
3699 
3700    if (str != NULL) {
3701       if (*context != NULL) {
3702-         ERROR((SGE_EVENT, MSG_POINTER_INVALIDSTRTOKCALL));
3703+         ERROR((SGE_EVENT, "%s", MSG_POINTER_INVALIDSTRTOKCALL));
3704       }
3705       *context = (struct saved_vars_s *)malloc(sizeof(struct saved_vars_s));
3706       memset(*context, 0, sizeof(struct saved_vars_s));
3707@@ -399,7 +399,7 @@
3708       saved_cp = saved->static_str;
3709    } else {
3710       if (*context == NULL) {
3711-         ERROR((SGE_EVENT, MSG_POINTER_INVALIDSTRTOKCALL1));
3712+         ERROR((SGE_EVENT, "%s", MSG_POINTER_INVALIDSTRTOKCALL1));
3713          DRETURN(NULL);
3714       }
3715       saved = *context;
3716diff -Nur source/libs/uti/sge_uidgid.c ../../gridengine-6.2u4/source/libs/uti/sge_uidgid.c
3717--- source/libs/uti/sge_uidgid.c        2009-12-01 18:52:42.000000000 +0000
3718+++ ../../gridengine-6.2u4/source/libs/uti/sge_uidgid.c 2010-03-03 15:37:04.723058318 +0000
3719@@ -242,7 +242,7 @@
3720    }
3721    if (!user || user[0] == '\0') {
3722       if (err_str) {
3723-         sprintf(err_str, MSG_POINTER_SETADMINUSERNAMEFAILED);
3724+         sprintf(err_str, "%s", MSG_POINTER_SETADMINUSERNAMEFAILED);
3725       }
3726       DEXIT;
3727       return -1;
3728@@ -353,7 +353,7 @@
3729    DENTER(UIDGID_LAYER, "sge_switch2admin_user");
3730 
3731    if (get_admin_user(&uid, &gid) == ESRCH) {
3732-      CRITICAL((SGE_EVENT, MSG_SWITCH_USER_NOT_INITIALIZED));
3733+      CRITICAL((SGE_EVENT, "%s", MSG_SWITCH_USER_NOT_INITIALIZED));
3734       abort();
3735    }
3736 
3737@@ -425,7 +425,7 @@
3738    DENTER(UIDGID_LAYER, "sge_switch2start_user");
3739 
3740    if (get_admin_user(&uid, &gid) == ESRCH) {
3741-      CRITICAL((SGE_EVENT, MSG_SWITCH_USER_NOT_INITIALIZED));
3742+      CRITICAL((SGE_EVENT, "%s", MSG_SWITCH_USER_NOT_INITIALIZED));
3743       abort();
3744    }
3745 
3746@@ -979,7 +979,7 @@
3747    sge_switch2start_user();
3748 
3749    if (!sge_is_start_user_superuser()) {
3750-      sprintf(err_str, MSG_SYSTEM_CHANGEUIDORGIDFAILED );
3751+      sprintf(err_str, "%s", MSG_SYSTEM_CHANGEUIDORGIDFAILED );
3752       return -1;
3753    }
3754 
3755diff -Nur source/libs/uti/sge_unistd.c ../../gridengine-6.2u4/source/libs/uti/sge_unistd.c
3756--- source/libs/uti/sge_unistd.c        2009-12-01 18:52:42.000000000 +0000
3757+++ ../../gridengine-6.2u4/source/libs/uti/sge_unistd.c 2010-03-03 15:39:22.178556176 +0000
3758@@ -157,7 +157,7 @@
3759    DENTER(TOP_LAYER, "sge_unlink");
3760 
3761    if (!suffix) {
3762-      ERROR((SGE_EVENT, MSG_POINTER_SUFFIXISNULLINSGEUNLINK ));
3763+      ERROR((SGE_EVENT, "%s", MSG_POINTER_SUFFIXISNULLINSGEUNLINK ));
3764       DEXIT;
3765       return false;
3766    }
3767@@ -349,11 +349,11 @@
3768    DENTER(TOP_LAYER, "sge_mkdir");
3769    if (!path) {
3770       if (exit_on_error) {
3771-         CRITICAL((SGE_EVENT,MSG_VAR_PATHISNULLINSGEMKDIR ));
3772+         CRITICAL((SGE_EVENT, "%s", MSG_VAR_PATHISNULLINSGEMKDIR ));
3773          DCLOSE;
3774          SGE_EXIT(NULL, 1);
3775       } else {
3776-         ERROR((SGE_EVENT, MSG_VAR_PATHISNULLINSGEMKDIR ));
3777+         ERROR((SGE_EVENT, "%s", MSG_VAR_PATHISNULLINSGEMKDIR ));
3778          DEXIT;
3779          return -1;
3780       }
3781@@ -394,11 +394,11 @@
3782   
3783    if (base_dir == NULL || name == NULL) {
3784       if (exit_on_error) {
3785-         CRITICAL((SGE_EVENT,MSG_VAR_PATHISNULLINSGEMKDIR ));
3786+         CRITICAL((SGE_EVENT, "%s", MSG_VAR_PATHISNULLINSGEMKDIR ));
3787          DCLOSE;
3788          SGE_EXIT(NULL, 1);
3789       } else {
3790-         ERROR((SGE_EVENT, MSG_VAR_PATHISNULLINSGEMKDIR ));
3791+         ERROR((SGE_EVENT, "%s", MSG_VAR_PATHISNULLINSGEMKDIR ));
3792          DRETURN(-1);
3793       }
3794    }
3795diff -Nur source/utilbin/authuser.c ../../gridengine-6.2u4/source/utilbin/authuser.c
3796--- source/utilbin/authuser.c   2009-12-01 18:52:46.000000000 +0000
3797+++ ../../gridengine-6.2u4/source/utilbin/authuser.c    2010-03-04 14:11:44.115050589 +0000
3798@@ -158,7 +158,7 @@
3799 static void print_error(const char* format, ...) {
3800    va_list ap;
3801    va_start(ap, format);
3802-   fprintf(stderr, MSG_AUTHUSER_ERROR);
3803+   fprintf(stderr, "%s", MSG_AUTHUSER_ERROR);
3804    vfprintf(stderr, format, ap);
3805    fprintf(stderr, "\n");
3806    va_end(ap);
3807diff -Nur source/utilbin/checkprog.c ../../gridengine-6.2u4/source/utilbin/checkprog.c
3808--- source/utilbin/checkprog.c  2009-12-01 18:52:46.000000000 +0000
3809+++ ../../gridengine-6.2u4/source/utilbin/checkprog.c   2010-03-04 14:26:21.894565052 +0000
3810@@ -58,7 +58,7 @@
3811 void usage_checkprog(void)
3812 {
3813    fprintf(stderr, "\n");
3814-   fprintf(stderr, MSG_COMMAND_USAGECHECKPROG);
3815+   fprintf(stderr, "%s", MSG_COMMAND_USAGECHECKPROG);
3816    fprintf(stderr, "\n");
3817    /*fprintf(stderr, "check the first 8 letters of process basename\n\n");
3818    fprintf(stderr, "exit status: 0 if process was found\n");
3819@@ -71,7 +71,7 @@
3820 void usage_getprogs(void)
3821 {
3822    fprintf(stderr, "\n");
3823-   fprintf(stderr,MSG_COMMAND_USAGEGETPROGS );
3824+   fprintf(stderr, "%s", MSG_COMMAND_USAGEGETPROGS );
3825    fprintf(stderr, "\n");
3826    /*
3827    fprintf(stderr, "check and list pids of \"processname\"\n\n");
3828@@ -104,7 +104,7 @@
3829    else if (!strcmp(ptr, "getprogs"))
3830       checkit = 0;
3831    else {
3832-      fprintf(stderr, MSG_COMMAND_CALLCHECKPROGORGETPROGS );
3833+      fprintf(stderr, "%s", MSG_COMMAND_CALLCHECKPROGORGETPROGS );
3834       fprintf(stderr, "\n");
3835       exit(1);
3836    }
3837@@ -172,7 +172,7 @@
3838                        else if (res == 0)
3839                                printf(MSG_PROC_PIDISRUNNINGWITHNAME_IS , (int) pid, argv[2]);
3840                        else if (res == -1)
3841-                                printf(MSG_COMMAND_SPANPSFAILED );
3842+                                printf("%s", MSG_COMMAND_SPANPSFAILED );
3843                                 
3844                        if (res == -1)
3845                                res = 2;
3846diff -Nur source/utilbin/gethostbyaddr.c ../../gridengine-6.2u4/source/utilbin/gethostbyaddr.c
3847--- source/utilbin/gethostbyaddr.c      2009-12-01 18:52:46.000000000 +0000
3848+++ ../../gridengine-6.2u4/source/utilbin/gethostbyaddr.c       2010-03-04 14:25:59.170565433 +0000
3849@@ -212,13 +212,13 @@
3850      }
3851   
3852      if (he != NULL) {
3853-        printf(MSG_SYSTEM_ALIASES );
3854+        printf("%s",MSG_SYSTEM_ALIASES );
3855   
3856         for (tp = he->h_aliases; *tp; tp++)
3857           printf("%s ", *tp);
3858         printf("\n");
3859     
3860-        printf(MSG_SYSTEM_ADDRESSES );
3861+        printf("%s",MSG_SYSTEM_ADDRESSES );
3862   
3863         for (tp2 = he->h_addr_list; *tp2; tp2++)
3864            printf("%s ", inet_ntoa(* (struct in_addr *) *tp2));  /* inet_ntoa() is not MT save */
3865diff -Nur source/utilbin/gethostbyname.c ../../gridengine-6.2u4/source/utilbin/gethostbyname.c
3866--- source/utilbin/gethostbyname.c      2009-12-01 18:52:46.000000000 +0000
3867+++ ../../gridengine-6.2u4/source/utilbin/gethostbyname.c       2010-03-04 14:25:02.527064580 +0000
3868@@ -157,13 +157,13 @@
3869            printf("SGE name: %s\n",resolved_name);
3870         }
3871 
3872-        printf(MSG_SYSTEM_ALIASES );
3873+        printf("%s", MSG_SYSTEM_ALIASES );
3874 
3875         for (tp = he->h_aliases; *tp; tp++)
3876            printf("%s ", *tp);
3877         printf("\n");
3878   
3879-        printf(MSG_SYSTEM_ADDRESSES );
3880+        printf("%s", MSG_SYSTEM_ADDRESSES );
3881         for (tp2 = he->h_addr_list; *tp2; tp2++)
3882            printf("%s ", inet_ntoa(* (struct in_addr *) *tp2));  /* inet_ntoa() is not MT save */
3883         printf("\n"); 
3884diff -Nur source/utilbin/gethostname.c ../../gridengine-6.2u4/source/utilbin/gethostname.c
3885--- source/utilbin/gethostname.c        2009-12-01 18:52:46.000000000 +0000
3886+++ ../../gridengine-6.2u4/source/utilbin/gethostname.c 2010-03-04 14:24:38.379054912 +0000
3887@@ -149,13 +149,13 @@
3888            printf("SGE name: %s\n",resolved_name);
3889         }
3890 
3891-        printf(MSG_SYSTEM_ALIASES );
3892+        printf("%s", MSG_SYSTEM_ALIASES );
3893 
3894         for (tp = he->h_aliases; *tp; tp++)
3895            printf("%s ", *tp);
3896         printf("\n");
3897   
3898-        printf(MSG_SYSTEM_ADDRESSES );
3899+        printf("%s",MSG_SYSTEM_ADDRESSES );
3900         for (tp2 = he->h_addr_list; *tp2; tp2++)
3901            printf("%s ", inet_ntoa(* (struct in_addr *) *tp2));  /* inet_ntoa() is not MT save */
3902         printf("\n"); 
3903diff -Nur source/utilbin/loadcheck.c ../../gridengine-6.2u4/source/utilbin/loadcheck.c
3904--- source/utilbin/loadcheck.c  2009-12-01 18:52:46.000000000 +0000
3905+++ ../../gridengine-6.2u4/source/utilbin/loadcheck.c   2010-03-04 14:11:44.115050589 +0000
3906@@ -165,7 +165,7 @@
3907    /* memory load report */
3908    memset(&mem_info, 0, sizeof(sge_mem_info_t));
3909    if (sge_loadmem(&mem_info)) {
3910-      fprintf(stderr, MSG_SYSTEM_RETMEMORYINDICESFAILED );
3911+      fprintf(stderr, "%s", MSG_SYSTEM_RETMEMORYINDICESFAILED );
3912       fprintf(stderr, "\n");
3913 #ifndef WINDOWS
3914       DEXIT;
3915diff -Nur source/utilbin/qping.c ../../gridengine-6.2u4/source/utilbin/qping.c
3916--- source/utilbin/qping.c      2009-12-01 18:52:46.000000000 +0000
3917+++ ../../gridengine-6.2u4/source/utilbin/qping.c       2010-03-04 14:11:44.115050589 +0000
3918@@ -365,7 +365,7 @@
3919             help[0]=0;
3920             if (help2) {
3921                snprintf(help_buffer,1024,"%s%s", cl_values[1], help2);
3922-               snprintf(cl_values[1],1024, help_buffer);
3923+               snprintf(cl_values[1],1024, "%s", help_buffer);
3924             }
3925          }
3926   
3927@@ -376,7 +376,7 @@
3928             help[0]=0;
3929             if (help2) {
3930                snprintf(help_buffer,1024,"%s%s", cl_values[3], help2);
3931-               snprintf(cl_values[3],1024, help_buffer);
3932+               snprintf(cl_values[3],1024, "%s", help_buffer);
3933             }
3934          }
3935   
3936diff -Nur source/utilbin/sge_passwd.c ../../gridengine-6.2u4/source/utilbin/sge_passwd.c
3937--- source/utilbin/sge_passwd.c 2009-12-01 18:52:46.000000000 +0000
3938+++ ../../gridengine-6.2u4/source/utilbin/sge_passwd.c  2010-03-04 14:11:44.115050589 +0000
3939@@ -295,7 +295,7 @@
3940       const char *cert = getenv("SGE_CERTFILE");
3941 
3942       if (cert != NULL) {
3943-         snprintf(file, 4096, cert);
3944+         snprintf(file,4096, "%s", cert);
3945       } else {
3946          const char *sge_root = sge_get_root_dir(0, NULL, 0, 1);
3947          const char *sge_cell = sge_get_default_cell();
3948@@ -655,7 +655,7 @@
3949       snprintf(err_str, MAX_STRING_SIZE, MSG_PWD_LOAD_PRIV_SSS,
3950               SGE_PASSWD_PROG_NAME, file_priv_key, err_msg);
3951 #ifdef DEFINE_SGE_PASSWD_MAIN
3952-      fprintf(stderr, err_str);
3953+      fprintf(stderr, "%s", err_str);
3954 #endif
3955       DEXIT;
3956       return 1;
3957@@ -685,7 +685,7 @@
3958       snprintf(err_str, MAX_STRING_SIZE, MSG_PWD_MALLOC_SS,
3959          SGE_PASSWD_PROG_NAME, err_msg);
3960 #ifdef DEFINE_SGE_PASSWD_MAIN
3961-      fprintf(stderr, err_str);
3962+      fprintf(stderr, "%s", err_str);
3963 #endif
3964       DEXIT;
3965       return 1;
3966@@ -1198,7 +1198,7 @@
3967    password_write_file(users, encryped_pwd,
3968                        sge_get_file_dotpasswd(), sge_get_file_passwd());
3969    DPRINTF(("password table has been written\n"));
3970-   fprintf(stdout, MSG_PWD_CHANGED);
3971+   fprintf(stdout, "%s", MSG_PWD_CHANGED);
3972    fprintf(stdout, "\n");
3973    DEXIT;
3974 }
3975diff -Nur source/utilbin/spooldefaults.c ../../gridengine-6.2u4/source/utilbin/spooldefaults.c
3976--- source/utilbin/spooldefaults.c      2009-12-01 18:52:46.000000000 +0000
3977+++ ../../gridengine-6.2u4/source/utilbin/spooldefaults.c       2010-03-04 14:11:44.115050589 +0000
3978@@ -113,13 +113,13 @@
3979                                                    spooling_params);
3980    answer_list_output(&answer_list);
3981    if (spooling_context == NULL) {
3982-      CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
3983+      CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
3984    } else {
3985       spool_set_default_context(spooling_context);
3986 
3987       /* initialize spooling context */
3988       if (!spool_startup_context(&answer_list, spooling_context, true)) {
3989-         CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
3990+         CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
3991       } else {
3992          ret = EXIT_SUCCESS;
3993       }
3994diff -Nur source/utilbin/spooledit.c ../../gridengine-6.2u4/source/utilbin/spooledit.c
3995--- source/utilbin/spooledit.c  2009-12-01 18:52:46.000000000 +0000
3996+++ ../../gridengine-6.2u4/source/utilbin/spooledit.c   2010-03-04 14:26:42.706563593 +0000
3997@@ -97,9 +97,9 @@
3998                                                    spooling_params);
3999    answer_list_output(&answer_list);
4000    if (!strcmp(bootstrap_get_spooling_method(),"classic")) {
4001-      CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANTHANDLECLASSICSPOOLING));
4002+      CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANTHANDLECLASSICSPOOLING));
4003    } else if (spooling_context == NULL) {
4004-      CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
4005+      CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
4006    } else {
4007       spool_set_default_context(spooling_context);
4008       spool_set_option(&answer_list, spooling_context, "recover=false");
4009@@ -107,7 +107,7 @@
4010 
4011       /* initialize spooling context */
4012       if (!spool_startup_context(&answer_list, spooling_context, true)) {
4013-         CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
4014+         CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
4015       } else {
4016          /* search the berkeley db info - take it from any object type,
4017           * berkeleydb spools all objects using the same rule.
4018@@ -235,7 +235,7 @@
4019             answer_list_output(&answer_list);
4020             ret = EXIT_FAILURE;
4021          } else {
4022-            printf(job_script);
4023+            printf("%s",job_script);
4024             FREE(job_script);
4025          }
4026       } else {
4027diff -Nur source/utilbin/spoolinit.c ../../gridengine-6.2u4/source/utilbin/spoolinit.c
4028--- source/utilbin/spoolinit.c  2009-12-01 18:52:46.000000000 +0000
4029+++ ../../gridengine-6.2u4/source/utilbin/spoolinit.c   2010-03-04 14:11:44.115050589 +0000
4030@@ -83,14 +83,14 @@
4031                                                    libargs);
4032    answer_list_output(&answer_list);
4033    if (spooling_context == NULL) {
4034-      CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
4035+      CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTCREATECONTEXT));
4036    } else {
4037       spool_set_default_context(spooling_context);
4038 
4039       /* initialize spooling context */
4040       if (!spool_startup_context(&answer_list, spooling_context,
4041                                  check_context)) {
4042-         CRITICAL((SGE_EVENT, MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
4043+         CRITICAL((SGE_EVENT, "%s", MSG_SPOOLDEFAULTS_CANNOTSTARTUPCONTEXT));
4044       } else {
4045          ret = EXIT_SUCCESS;
4046       }