1 diff -ur enlightenment-0.16.6.orig/src/E.h enlightenment-0.16.6/src/E.h
2 --- enlightenment-0.16.6.orig/src/E.h Wed Nov 5 18:58:50 2003
3 +++ enlightenment-0.16.6/src/E.h Wed Nov 12 17:24:40 2003
5 #define Esetenv(var, val, overwrite) \
7 static char envvar[FILEPATH_LEN_MAX]; \
8 - Esnprintf(envvar, FILEPATH_LEN_MAX, "%s=%s", var, val);\
9 + snprintf(envvar, FILEPATH_LEN_MAX, "%s=%s", var, val);\
13 diff -ur enlightenment-0.16.6.orig/src/actions.c enlightenment-0.16.6/src/actions.c
14 --- enlightenment-0.16.6.orig/src/actions.c Wed Nov 5 18:58:50 2003
15 +++ enlightenment-0.16.6/src/actions.c Wed Nov 12 17:23:52 2003
20 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
21 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
22 ActionClassToRemove->ref_count);
23 DIALOG_OK(_("ActionClass Error!"), stuff);
29 - Esnprintf(stuff, sizeof(stuff), _("About Enlightenment %s"),
30 + snprintf(stuff, sizeof(stuff), _("About Enlightenment %s"),
31 ENLIGHTENMENT_VERSION);
32 DialogSetTitle(d, stuff);
35 ibl = ListAllIconboxes(&num);
38 - Esnprintf(s, sizeof(s), "_IB_%i", num);
39 + snprintf(s, sizeof(s), "_IB_%i", num);
40 AUDIO_PLAY("SOUND_NEW_ICONBOX");
41 ib = CreateIconbox(s);
47 - Esnprintf(s, sizeof(s), "%s/.zoom_warn", UserEDir());
48 + snprintf(s, sizeof(s), "%s/.zoom_warn", UserEDir());
52 diff -ur enlightenment-0.16.6.orig/src/borders.c enlightenment-0.16.6/src/borders.c
53 --- enlightenment-0.16.6.orig/src/borders.c Wed Nov 5 18:58:50 2003
54 +++ enlightenment-0.16.6/src/borders.c Wed Nov 12 17:23:52 2003
56 if (b->part[i].iclass->external)
58 ewin->bits[i].win = 0;
59 - Esnprintf(s, sizeof(s), "request imageclass %s",
60 + snprintf(s, sizeof(s), "request imageclass %s",
61 b->part[i].iclass->name);
63 await = Emalloc(sizeof(AwaitIclass));
68 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
69 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
71 DIALOG_OK(_("Border Error!"), stuff);
73 diff -ur enlightenment-0.16.6.orig/src/buttons.c enlightenment-0.16.6/src/buttons.c
74 --- enlightenment-0.16.6.orig/src/buttons.c Wed Nov 5 18:58:50 2003
75 +++ enlightenment-0.16.6/src/buttons.c Wed Nov 12 17:23:52 2003
80 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
81 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
83 DIALOG_OK(_("Button Error!"), stuff);
85 diff -ur enlightenment-0.16.6.orig/src/cmclass.c enlightenment-0.16.6/src/cmclass.c
86 --- enlightenment-0.16.6.orig/src/cmclass.c Wed Nov 5 18:58:50 2003
87 +++ enlightenment-0.16.6/src/cmclass.c Wed Nov 12 17:23:52 2003
92 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
93 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
95 DIALOG_OK(_("ColorModClass Error!"), stuff);
97 diff -ur enlightenment-0.16.6.orig/src/comms.c enlightenment-0.16.6/src/comms.c
98 --- enlightenment-0.16.6.orig/src/comms.c Wed Nov 5 18:58:50 2003
99 +++ enlightenment-0.16.6/src/comms.c Wed Nov 12 17:23:52 2003
102 comms_win = XCreateSimpleWindow(disp, root.win, -100, -100, 5, 5, 0, 0, 0);
103 XSelectInput(disp, comms_win, StructureNotifyMask | SubstructureNotifyMask);
104 - Esnprintf(s, sizeof(s), "WINID %8x", (int)comms_win);
105 + snprintf(s, sizeof(s), "WINID %8x", (int)comms_win);
106 XA_ENLIGHTENMENT_COMMS = XInternAtom(disp, "ENLIGHTENMENT_COMMS", False);
107 XChangeProperty(disp, comms_win, XA_ENLIGHTENMENT_COMMS, XA_STRING, 8,
108 PropModeReplace, (unsigned char *)s, strlen(s));
110 ev.xclient.format = 8;
111 for (i = 0; i < len + 1; i += 12)
113 - Esnprintf(ss, sizeof(ss), "%8x", (int)comms_win);
114 + snprintf(ss, sizeof(ss), "%8x", (int)comms_win);
115 for (j = 0; j < 12; j++)
117 ss[8 + j] = s[i + j];
119 cl = MakeClient(win);
122 - Esnprintf(st, sizeof(st), "%8x", (int)win);
123 + snprintf(st, sizeof(st), "%8x", (int)win);
124 cl->name = duplicate(st);
125 AddItem((void *)cl, st, cl->win, LIST_TYPE_CLIENT);
126 XSelectInput(disp, win, StructureNotifyMask | SubstructureNotifyMask);
130 SetDefaultTheme(buf);
131 - Esnprintf(sss, sizeof(sss), "restart_theme %s", buf);
132 + snprintf(sss, sizeof(sss), "restart_theme %s", buf);
138 if (desks.desk[i].bg == bg)
140 - Esnprintf(buf2, sizeof(buf2), "%i\n", i);
141 + snprintf(buf2, sizeof(buf2), "%i\n", i);
145 @@ -684,11 +684,11 @@
146 (Mod5Mask | ControlMask | ShiftMask))
148 if (a->action->params)
149 - Esnprintf(buf2, sizeof(buf2), "%s %i %i %s\n",
150 + snprintf(buf2, sizeof(buf2), "%s %i %i %s\n",
151 key, mod, a->action->Type,
154 - Esnprintf(buf2, sizeof(buf2), "%s %i %i\n", key,
155 + snprintf(buf2, sizeof(buf2), "%s %i %i\n", key,
156 mod, a->action->Type);
160 sscanf(s, "%*s %1000s", w);
161 bg = (Background *) FindItem(w, 0, LIST_FINDBY_NAME,
162 LIST_TYPE_BACKGROUND);
163 - Esnprintf(buf, sizeof(buf), "(null)");
164 + snprintf(buf, sizeof(buf), "(null)");
165 if ((bg) && (bg->cmclass))
166 - Esnprintf(buf, sizeof(buf), "%s", bg->cmclass->name);
167 + snprintf(buf, sizeof(buf), "%s", bg->cmclass->name);
170 else if (!strcmp(w, "del_colmod"))
172 sscanf(s, "%*s %1000s", w);
173 cm = (ColorModifierClass *) FindItem(w, 0, LIST_FINDBY_NAME,
174 LIST_TYPE_COLORMODIFIER);
175 - Esnprintf(buf, sizeof(buf), "(null)");
176 + snprintf(buf, sizeof(buf), "(null)");
180 @@ -872,33 +872,33 @@
181 sscanf(s, "%*s %1000s", w);
182 cm = (ColorModifierClass *) FindItem(w, 0, LIST_FINDBY_NAME,
183 LIST_TYPE_COLORMODIFIER);
184 - Esnprintf(buf, sizeof(buf), "(null)");
185 + snprintf(buf, sizeof(buf), "(null)");
188 - Esnprintf(buf, sizeof(buf), "%i", (int)(cm->red.num));
189 + snprintf(buf, sizeof(buf), "%i", (int)(cm->red.num));
190 for (i = 0; i < cm->red.num; i++)
192 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->red.px[i]));
193 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->red.px[i]));
195 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->red.py[i]));
196 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->red.py[i]));
199 - Esnprintf(buf2, sizeof(buf2), "\n%i", (int)(cm->green.num));
200 + snprintf(buf2, sizeof(buf2), "\n%i", (int)(cm->green.num));
202 for (i = 0; i < cm->green.num; i++)
204 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->green.px[i]));
205 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->green.px[i]));
207 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->green.py[i]));
208 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->green.py[i]));
211 - Esnprintf(buf2, sizeof(buf2), "\n%i", (int)(cm->red.num));
212 + snprintf(buf2, sizeof(buf2), "\n%i", (int)(cm->red.num));
214 for (i = 0; i < cm->blue.num; i++)
216 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->blue.px[i]));
217 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->blue.px[i]));
219 - Esnprintf(buf2, sizeof(buf2), " %i", (int)(cm->blue.py[i]));
220 + snprintf(buf2, sizeof(buf2), " %i", (int)(cm->blue.py[i]));
224 @@ -991,11 +991,11 @@
225 sscanf(s, "%*s %1000s", w);
226 bg = (Background *) FindItem(w, 0, LIST_FINDBY_NAME,
227 LIST_TYPE_BACKGROUND);
228 - Esnprintf(buf, sizeof(buf), "(null)");
229 + snprintf(buf, sizeof(buf), "(null)");
232 if ((bg->bg.file) && (bg->top.file))
233 - Esnprintf(buf, sizeof(buf),
234 + snprintf(buf, sizeof(buf),
235 "%s %i %i %i %s %i %i %i %i %i %i %s %i %i %i %i %i",
236 bg->name, bg->bg.solid.r, bg->bg.solid.g,
237 bg->bg.solid.b, bg->bg.file, bg->bg.tile,
238 @@ -1004,7 +1004,7 @@
239 bg->top.keep_aspect, bg->top.xjust, bg->top.yjust,
240 bg->top.xperc, bg->top.yperc);
241 else if ((!(bg->bg.file)) && (bg->top.file))
242 - Esnprintf(buf, sizeof(buf),
243 + snprintf(buf, sizeof(buf),
244 "%s %i %i %i %s %i %i %i %i %i %i %s %i %i %i %i %i",
245 bg->name, bg->bg.solid.r, bg->bg.solid.g,
246 bg->bg.solid.b, "(null)", bg->bg.tile,
247 @@ -1013,7 +1013,7 @@
248 bg->top.keep_aspect, bg->top.xjust, bg->top.yjust,
249 bg->top.xperc, bg->top.yperc);
250 else if ((bg->bg.file) && (!(bg->top.file)))
251 - Esnprintf(buf, sizeof(buf),
252 + snprintf(buf, sizeof(buf),
253 "%s %i %i %i %s %i %i %i %i %i %i %s %i %i %i %i %i",
254 bg->name, bg->bg.solid.r, bg->bg.solid.g,
255 bg->bg.solid.b, bg->bg.file, bg->bg.tile,
256 @@ -1022,7 +1022,7 @@
257 bg->top.keep_aspect, bg->top.xjust, bg->top.yjust,
258 bg->top.xperc, bg->top.yperc);
259 else if ((!(bg->bg.file)) && (!(bg->top.file)))
260 - Esnprintf(buf, sizeof(buf),
261 + snprintf(buf, sizeof(buf),
262 "%s %i %i %i %s %i %i %i %i %i %i %s %i %i %i %i %i",
263 bg->name, bg->bg.solid.r, bg->bg.solid.g,
264 bg->bg.solid.b, "(null)", bg->bg.tile,
265 @@ -1491,7 +1491,7 @@
269 - Esnprintf(buf, sizeof(buf),
270 + snprintf(buf, sizeof(buf),
271 "FOCUSMODE: %i\n" "DOCKAPP_SUPPORT: %i\n" "DOCKDIRMODE: %i\n"
272 "ICONDIRMODE: %i\n" "MOVEMODE: %i\n" "RESIZEMODE: %i\n"
273 "SLIDEMODE: %i\n" "CLEANUPSLIDE: %i\n" "MAPSLIDE: %i\n"
274 @@ -1555,7 +1555,7 @@
275 char buf[FILEPATH_LEN_MAX];
278 - Esnprintf(buf, sizeof(buf), "Number of desks is %d\n",
279 + snprintf(buf, sizeof(buf), "Number of desks is %d\n",
283 @@ -1607,7 +1607,7 @@
284 ewin->client.icon_name = none;
287 - Esnprintf(buf, sizeof(buf),
288 + snprintf(buf, sizeof(buf),
289 "***CLIENT***\n" "CLIENT_WIN_ID: %8x\n"
290 "FRAME_WIN_ID: %8x\n"
291 "FRAME_X,Y: %5i , %5i\n"
292 @@ -1686,7 +1686,7 @@
296 - Esnprintf(buf, sizeof(buf),
297 + snprintf(buf, sizeof(buf),
298 "***CLIENT***\n" "CLIENT_WIN_ID: %8x\n"
299 "FRAME_WIN_ID: %8x\n"
300 "FRAME_X,Y: %5i , %5i\n"
301 @@ -1775,7 +1775,7 @@
305 - Esnprintf(buf, sizeof(buf), "No matching EWin found\n");
306 + snprintf(buf, sizeof(buf), "No matching EWin found\n");
310 @@ -1791,22 +1791,22 @@
311 char buf4[FILEPATH_LEN_MAX];
312 char buf5[FILEPATH_LEN_MAX];
314 - Esnprintf(buf, sizeof(buf), "stuff:\n");
315 + snprintf(buf, sizeof(buf), "stuff:\n");
318 - Esnprintf(buf2, sizeof(buf2), "mode.ewin - %8x\n",
319 + snprintf(buf2, sizeof(buf2), "mode.ewin - %8x\n",
320 mode.ewin->client.win);
325 - Esnprintf(buf3, sizeof(buf3), "mode.focuswin - %8x\n",
326 + snprintf(buf3, sizeof(buf3), "mode.focuswin - %8x\n",
327 mode.focuswin->client.win);
330 if (mode.realfocuswin)
332 - Esnprintf(buf4, sizeof(buf4), "mode.realfocuswin - %8x\n",
333 + snprintf(buf4, sizeof(buf4), "mode.realfocuswin - %8x\n",
334 mode.realfocuswin->client.win);
337 @@ -1816,7 +1816,7 @@
339 if (mode.context_ewin)
341 - Esnprintf(buf5, sizeof(buf5), "context_ewin - %8x\n",
342 + snprintf(buf5, sizeof(buf5), "context_ewin - %8x\n",
343 mode.context_ewin->client.win);
346 @@ -1846,7 +1846,7 @@
347 lst[i]->client.icon_name = none;
350 - Esnprintf(buf, sizeof(buf),
351 + snprintf(buf, sizeof(buf),
352 "***CLIENT***\n" "CLIENT_WIN_ID: %8x\n"
353 "FRAME_WIN_ID: %8x\n"
354 "FRAME_X,Y: %5i , %5i\n"
355 @@ -1928,7 +1928,7 @@
359 - Esnprintf(buf, sizeof(buf),
360 + snprintf(buf, sizeof(buf),
361 "***CLIENT***\n" "CLIENT_WIN_ID: %8x\n"
362 "FRAME_WIN_ID: %8x\n"
363 "FRAME_X,Y: %5i , %5i\n"
364 @@ -2049,7 +2049,7 @@
366 char buf[FILEPATH_LEN_MAX];
368 - Esnprintf(buf, sizeof(buf),
369 + snprintf(buf, sizeof(buf),
370 _("Received Unknown Client Message.\n"
371 "Client Name: %s\n" "Client Version: %s\n"
372 "Message Contents:\n\n" "%s\n"), s1, s2, s);
373 diff -ur enlightenment-0.16.6.orig/src/config.c enlightenment-0.16.6/src/config.c
374 --- enlightenment-0.16.6.orig/src/config.c Wed Nov 12 17:18:38 2003
375 +++ enlightenment-0.16.6/src/config.c Wed Nov 12 17:23:52 2003
376 @@ -3261,7 +3261,7 @@
380 - Esnprintf(execline, sizeof(execline), "%s " "-P " "-nostdinc " "-undef "
381 + snprintf(execline, sizeof(execline), "%s " "-P " "-nostdinc " "-undef "
383 "-include %s/definitions " "-I%s " "-I%s "
384 "-D ENLIGHTENMENT_VERSION=%s " "-D ENLIGHTENMENT_ROOT=%s "
385 @@ -3289,7 +3289,7 @@
386 root.h, root.depth, def_user, def_home, def_shell, path,
389 - Esnprintf(execline, sizeof(execline), "%s/cached/cfg/%s.preparsed",
390 + snprintf(execline, sizeof(execline), "%s/cached/cfg/%s.preparsed",
393 fpin = fopen(execline, "r");
394 @@ -3523,20 +3523,20 @@
396 /* look in ~/.enlightenment first */
398 - Esnprintf(s, sizeof(s), "%s/%s", UserEDir(), file);
399 + snprintf(s, sizeof(s), "%s/%s", UserEDir(), file);
400 if (findLocalizedFile(s) || isfile(s))
401 EDBUG_RETURN(duplicate(s));
403 /* look in theme dir */
404 - Esnprintf(s, sizeof(s), "%s/%s", themepath, file);
405 + snprintf(s, sizeof(s), "%s/%s", themepath, file);
406 if (findLocalizedFile(s) || isfile(s))
407 EDBUG_RETURN(duplicate(s));
409 /* look in system config dir */
411 - Esnprintf(s, sizeof(s), "%s/%s", CONFIGDATADIR, file);
412 + snprintf(s, sizeof(s), "%s/%s", CONFIGDATADIR, file);
414 - Esnprintf(s, sizeof(s), "%s/config/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
415 + snprintf(s, sizeof(s), "%s/config/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
418 if (findLocalizedFile(s) || isfile(s))
419 @@ -3573,15 +3573,15 @@
422 /* look in ~/.enlightenment first */
423 - Esnprintf(s, sizeof(s), "%s/%s", UserEDir(), file);
424 + snprintf(s, sizeof(s), "%s/%s", UserEDir(), file);
425 if (findLocalizedFile(s) || isfile(s))
426 EDBUG_RETURN(duplicate(s));
428 /* look in system config dir */
430 - Esnprintf(s, sizeof(s), "%s/%s", CONFIGDATADIR, file);
431 + snprintf(s, sizeof(s), "%s/%s", CONFIGDATADIR, file);
433 - Esnprintf(s, sizeof(s), "%s/config/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
434 + snprintf(s, sizeof(s), "%s/config/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
437 if (findLocalizedFile(s) || isfile(s))
438 @@ -3602,7 +3602,7 @@
440 EDBUG(5, "LoadConfigFile");
442 - Esnprintf(s, sizeof(s), "%s", f);
443 + snprintf(s, sizeof(s), "%s", f);
447 @@ -3621,7 +3621,7 @@
451 - Esnprintf(s, sizeof(s), "%s/cached/cfg/%s.preparsed", UserCacheDir(), s2);
452 + snprintf(s, sizeof(s), "%s/cached/cfg/%s.preparsed", UserCacheDir(), s2);
454 if (strstr(f, "control.cfg"))
456 @@ -3664,14 +3664,14 @@
457 EDBUG(5, "LoadEConfig");
460 - Esnprintf(s, sizeof(s), "%s/", UserEDir());
461 + snprintf(s, sizeof(s), "%s/", UserEDir());
463 Fnlib_add_dir(pFnlibData, s);
466 - Esnprintf(s, sizeof(s), "%s/", CONFIGDATADIR);
467 + snprintf(s, sizeof(s), "%s/", CONFIGDATADIR);
469 - Esnprintf(s, sizeof(s), "%s/config/", __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
470 + snprintf(s, sizeof(s), "%s/config/", __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
473 Fnlib_add_dir(pFnlibData, s);
474 @@ -3686,7 +3686,7 @@
475 fprintf(f, "%s\n", themelocation);
478 - Esnprintf(ss, sizeof(ss), "%s/user_theme.cfg", UserEDir());
479 + snprintf(ss, sizeof(ss), "%s/user_theme.cfg", UserEDir());
483 @@ -3725,7 +3725,7 @@
486 strcpy(themepath, theme);
487 - Esnprintf(s, sizeof(s), "%s/", theme);
488 + snprintf(s, sizeof(s), "%s/", theme);
490 Fnlib_add_dir(pFnlibData, s);
492 diff -ur enlightenment-0.16.6.orig/src/coords.c enlightenment-0.16.6/src/coords.c
493 --- enlightenment-0.16.6.orig/src/coords.c Wed Nov 5 18:58:50 2003
494 +++ enlightenment-0.16.6/src/coords.c Wed Nov 12 17:23:52 2003
499 - Esnprintf(s, sizeof(s), "%i x %i (%i, %i)", w, h, x, y);
500 + snprintf(s, sizeof(s), "%i x %i (%i, %i)", w, h, x, y);
501 TextSize(tc, 0, 0, 0, s, &cw, &ch, 17);
503 cw += (ic->padding.left + ic->padding.right);
504 diff -ur enlightenment-0.16.6.orig/src/cursors.c enlightenment-0.16.6/src/cursors.c
505 --- enlightenment-0.16.6.orig/src/cursors.c Wed Nov 5 18:58:50 2003
506 +++ enlightenment-0.16.6/src/cursors.c Wed Nov 12 17:23:52 2003
511 - Esnprintf(msk, sizeof(msk), "%s.mask", img);
512 + snprintf(msk, sizeof(msk), "%s.mask", img);
520 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
521 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
523 DIALOG_OK(_("ECursor Error!"), stuff);
525 diff -ur enlightenment-0.16.6.orig/src/desktops.c enlightenment-0.16.6/src/desktops.c
526 --- enlightenment-0.16.6.orig/src/desktops.c Wed Nov 5 18:58:50 2003
527 +++ enlightenment-0.16.6/src/desktops.c Wed Nov 12 17:23:52 2003
532 - Esnprintf(s, sizeof(s),
533 + snprintf(s, sizeof(s),
534 "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c"
535 "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c"
536 "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c",
541 - Esnprintf(s, sizeof(s), "%i", i);
542 + snprintf(s, sizeof(s), "%i", i);
550 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
551 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
553 DIALOG_OK(_("Background Error!"), stuff);
555 @@ -1043,7 +1043,7 @@
557 for (i = 0; i < ENLIGHTENMENT_CONF_NUM_DESKTOPS; i++)
559 - Esnprintf(s, sizeof(s), "DRAGBAR_DESKTOP_%i", i);
560 + snprintf(s, sizeof(s), "DRAGBAR_DESKTOP_%i", i);
561 ac = FindItem(s, 0, LIST_FINDBY_NAME, LIST_TYPE_ACLASS);
564 @@ -1052,15 +1052,15 @@
565 a = CreateAction(EVENT_MOUSE_DOWN, 0, 0, 0, 1, 0, NULL, NULL);
568 - Esnprintf(param, 3, "%i", i);
569 + snprintf(param, 3, "%i", i);
570 AddToAction(a, ACTION_DESKTOP_DRAG, param);
571 a = CreateAction(EVENT_MOUSE_DOWN, 0, 0, 0, 3, 0, NULL, NULL);
573 - Esnprintf(s, sizeof(s), "deskmenu");
574 + snprintf(s, sizeof(s), "deskmenu");
575 AddToAction(a, ACTION_SHOW_MENU, duplicate(s));
576 a = CreateAction(EVENT_MOUSE_DOWN, 0, 0, 0, 2, 0, NULL, NULL);
578 - Esnprintf(s, sizeof(s), "taskmenu");
579 + snprintf(s, sizeof(s), "taskmenu");
580 AddToAction(a, ACTION_SHOW_MENU, duplicate(s));
583 @@ -1086,7 +1086,7 @@
584 "applications currently running.\n"));
587 - Esnprintf(s, sizeof(s), "RAISEBUTTON_DESKTOP_%i", i);
588 + snprintf(s, sizeof(s), "RAISEBUTTON_DESKTOP_%i", i);
589 ac2 = FindItem(s, 0, LIST_FINDBY_NAME, LIST_TYPE_ACLASS);
592 @@ -1095,14 +1095,14 @@
593 a = CreateAction(EVENT_MOUSE_UP, 1, 0, 1, 0, 0, NULL, NULL);
596 - Esnprintf(param, 3, "%i", i);
597 + snprintf(param, 3, "%i", i);
598 AddToAction(a, ACTION_DESKTOP_RAISE, param);
601 ("Click here to raise this desktop\n"
604 - Esnprintf(s, sizeof(s), "LOWERBUTTON_DESKTOP_%i", i);
605 + snprintf(s, sizeof(s), "LOWERBUTTON_DESKTOP_%i", i);
606 ac3 = FindItem(s, 0, LIST_FINDBY_NAME, LIST_TYPE_ACLASS);
609 @@ -1111,7 +1111,7 @@
610 a = CreateAction(EVENT_MOUSE_UP, 1, 0, 1, 0, 0, NULL, NULL);
613 - Esnprintf(param, 3, "%i", i);
614 + snprintf(param, 3, "%i", i);
615 AddToAction(a, ACTION_DESKTOP_LOWER, param);
618 diff -ur enlightenment-0.16.6.orig/src/dock.c enlightenment-0.16.6/src/dock.c
619 --- enlightenment-0.16.6.orig/src/dock.c Wed Nov 5 18:58:50 2003
620 +++ enlightenment-0.16.6/src/dock.c Wed Nov 12 17:23:52 2003
625 - Esnprintf(id, sizeof(id), "%i", ewin->client.win);
626 + snprintf(id, sizeof(id), "%i", ewin->client.win);
628 ic = FindItem("DEFAULT_DOCK_BUTTON", 0, LIST_FINDBY_NAME, LIST_TYPE_ICLASS);
629 if (mode.dockstartx >= 0)
630 diff -ur enlightenment-0.16.6.orig/src/draw.c enlightenment-0.16.6/src/draw.c
631 --- enlightenment-0.16.6.orig/src/draw.c Wed Nov 5 18:58:50 2003
632 +++ enlightenment-0.16.6/src/draw.c Wed Nov 12 17:23:52 2003
633 @@ -1010,7 +1010,7 @@
636 XDrawLine(disp, root.win, gc, x1, y1, x2, y1); \
637 - Esnprintf(str, sizeof(str), "%i", (x2) - (x1) + 1); \
638 + snprintf(str, sizeof(str), "%i", (x2) - (x1) + 1); \
639 XDrawString(disp, root.win, gc, ((x1) + (x2)) / 2, (y1) - 10, str, strlen(str)); \
641 #define DRAW_V_ARROW(y1, y2, x1) \
642 @@ -1024,7 +1024,7 @@
645 XDrawLine(disp, root.win, gc, x1, y1, x1, y2); \
646 - Esnprintf(str, sizeof(str), "%i", (y2) - (y1) + 1); \
647 + snprintf(str, sizeof(str), "%i", (y2) - (y1) + 1); \
648 XDrawString(disp, root.win, gc, x1 + 10, ((y1) + (y2)) / 2, str, strlen(str)); \
650 #define DO_DRAW_MODE_1(aa, bb, cc, dd) \
651 diff -ur enlightenment-0.16.6.orig/src/file.c enlightenment-0.16.6/src/file.c
652 --- enlightenment-0.16.6.orig/src/file.c Wed Nov 5 18:58:50 2003
653 +++ enlightenment-0.16.6/src/file.c Wed Nov 12 17:23:52 2003
657 n_calls = (unsigned long)time(NULL) + (unsigned long)getpid();
658 - Esnprintf(s, 1024, "%s/TMP_%Xl", UserEDir(), n_calls);
659 + snprintf(s, 1024, "%s/TMP_%Xl", UserEDir(), n_calls);
663 diff -ur enlightenment-0.16.6.orig/src/gnome.c enlightenment-0.16.6/src/gnome.c
664 --- enlightenment-0.16.6.orig/src/gnome.c Wed Nov 5 18:58:50 2003
665 +++ enlightenment-0.16.6/src/gnome.c Wed Nov 12 17:23:52 2003
667 atom_set = XInternAtom(disp, XA_WIN_WORKSPACE_NAMES, False);
668 for (i = 0; i < mode.numdesktops; i++)
670 - Esnprintf(s, sizeof(s), "%i", i);
671 + snprintf(s, sizeof(s), "%i", i);
672 names[i] = duplicate(s);
674 if (XStringListToTextProperty(names, mode.numdesktops, &text))
675 diff -ur enlightenment-0.16.6.orig/src/groups.c enlightenment-0.16.6/src/groups.c
676 --- enlightenment-0.16.6.orig/src/groups.c Wed Nov 5 18:58:50 2003
677 +++ enlightenment-0.16.6/src/groups.c Wed Nov 12 17:23:52 2003
682 - Esnprintf(s, sizeof(s), "%s/...e_session-XXXXXX.groups.%i", UserEDir(),
683 + snprintf(s, sizeof(s), "%s/...e_session-XXXXXX.groups.%i", UserEDir(),
691 - Esnprintf(s, sizeof(s), "%s/...e_session-XXXXXX.groups.%i", UserEDir(),
692 + snprintf(s, sizeof(s), "%s/...e_session-XXXXXX.groups.%i", UserEDir(),
696 diff -ur enlightenment-0.16.6.orig/src/iclass.c enlightenment-0.16.6/src/iclass.c
697 --- enlightenment-0.16.6.orig/src/iclass.c Wed Nov 5 18:58:51 2003
698 +++ enlightenment-0.16.6/src/iclass.c Wed Nov 12 17:23:52 2003
703 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
704 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
706 DIALOG_OK(_("ImageClass Error!"), stuff);
708 diff -ur enlightenment-0.16.6.orig/src/iconify.c enlightenment-0.16.6/src/iconify.c
709 --- enlightenment-0.16.6.orig/src/iconify.c Wed Nov 5 18:58:51 2003
710 +++ enlightenment-0.16.6/src/iconify.c Wed Nov 12 17:23:52 2003
711 @@ -1029,7 +1029,7 @@
715 - Esnprintf(s, sizeof(s), "%s/icondefs.cfg", UserEDir());
716 + snprintf(s, sizeof(s), "%s/icondefs.cfg", UserEDir());
720 @@ -2376,7 +2376,7 @@
721 p_menu->name = duplicate("__IBOX_MENU");
723 FindItem("DEFAULT", 0, LIST_FINDBY_NAME, LIST_TYPE_MENU_STYLE);
724 - Esnprintf(s, sizeof(s), "iconbox %s", ib->name);
725 + snprintf(s, sizeof(s), "iconbox %s", ib->name);
726 mi = CreateMenuItem(_("This Iconbox Settings..."), NULL, ACTION_CONFIG, s,
728 AddItemToMenu(p_menu, mi);
729 @@ -2386,7 +2386,7 @@
731 AddItemToMenu(p_menu, mi);
732 AddItem(p_menu, p_menu->name, 0, LIST_TYPE_MENU);
733 - Esnprintf(s, sizeof(s), "named %s", p_menu->name);
734 + snprintf(s, sizeof(s), "named %s", p_menu->name);
738 diff -ur enlightenment-0.16.6.orig/src/ipc.c enlightenment-0.16.6/src/ipc.c
739 --- enlightenment-0.16.6.orig/src/ipc.c Wed Nov 5 18:58:51 2003
740 +++ enlightenment-0.16.6/src/ipc.c Wed Nov 12 17:23:52 2003
743 for (i = 0; cfg_panels[i]; i += 2)
745 - Esnprintf(buf2, sizeof(buf2), "%s : %s\n", cfg_panels[i],
746 + snprintf(buf2, sizeof(buf2), "%s : %s\n", cfg_panels[i],
750 @@ -745,10 +745,10 @@
754 - Esnprintf(buf, sizeof(buf), "Error: no window found");
755 + snprintf(buf, sizeof(buf), "Error: no window found");
758 - Esnprintf(buf, sizeof(buf), "Error: no parameters");
759 + snprintf(buf, sizeof(buf), "Error: no parameters");
763 @@ -778,20 +778,20 @@
765 if (mode.kde_support)
767 - Esnprintf(buf, sizeof(buf), "kde: active");
768 + snprintf(buf, sizeof(buf), "kde: active");
772 - Esnprintf(buf, sizeof(buf), "kde: inactive");
773 + snprintf(buf, sizeof(buf), "kde: inactive");
778 - Esnprintf(buf, sizeof(buf), "Error: unknown state specified");
779 + snprintf(buf, sizeof(buf), "Error: unknown state specified");
783 - Esnprintf(buf, sizeof(buf), "Error: no state specified");
784 + snprintf(buf, sizeof(buf), "Error: no state specified");
792 - Esnprintf(buf, sizeof(buf), "Error: no module specified");
793 + snprintf(buf, sizeof(buf), "Error: no module specified");
801 - Esnprintf(buf, sizeof(buf), "Error: no module specified");
802 + snprintf(buf, sizeof(buf), "Error: no module specified");
807 strcat(buf, ModuleErrorCodeToString(returncode));
810 - Esnprintf(buf, sizeof(buf), "");
811 + snprintf(buf, sizeof(buf), "");
815 @@ -859,18 +859,18 @@
816 strcat(buf, ModuleListAsString());
819 - Esnprintf(buf, sizeof(buf), "no modules loaded");
820 + snprintf(buf, sizeof(buf), "no modules loaded");
825 - Esnprintf(buf, sizeof(buf),
826 + snprintf(buf, sizeof(buf),
827 "Error: unknown module operation specified");
832 - Esnprintf(buf, sizeof(buf), "Error: no module operation specified");
833 + snprintf(buf, sizeof(buf), "Error: no module operation specified");
839 if (!strcmp(param2, "?"))
841 - Esnprintf(buf, sizeof(buf), "dock_startposition: %d %d",
842 + snprintf(buf, sizeof(buf), "dock_startposition: %d %d",
843 mode.dockstartx, mode.dockstarty);
850 - Esnprintf(buf, sizeof(buf),
851 + snprintf(buf, sizeof(buf),
852 "Error: no y coordinate");
859 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
860 + snprintf(buf, sizeof(buf), "Error: no operation specified");
863 else if (!strcmp(param1, "direction"))
864 @@ -935,23 +935,23 @@
866 if (mode.dockdirmode == DOCK_LEFT)
868 - Esnprintf(buf, sizeof(buf), "dock_dir: left");
869 + snprintf(buf, sizeof(buf), "dock_dir: left");
871 else if (mode.dockdirmode == DOCK_RIGHT)
873 - Esnprintf(buf, sizeof(buf), "dock_dir: right");
874 + snprintf(buf, sizeof(buf), "dock_dir: right");
876 else if (mode.dockdirmode == DOCK_UP)
878 - Esnprintf(buf, sizeof(buf), "dock_dir: up");
879 + snprintf(buf, sizeof(buf), "dock_dir: up");
881 else if (mode.dockdirmode == DOCK_DOWN)
883 - Esnprintf(buf, sizeof(buf), "dock_dir: down");
884 + snprintf(buf, sizeof(buf), "dock_dir: down");
888 - Esnprintf(buf, sizeof(buf),
889 + snprintf(buf, sizeof(buf),
890 "Error: I have NO " "idea what direction "
891 "this thing is going");
893 @@ -974,13 +974,13 @@
897 - Esnprintf(buf, sizeof(buf),
898 + snprintf(buf, sizeof(buf),
899 "Error: unknown direction " "specified");
904 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
905 + snprintf(buf, sizeof(buf), "Error: no operation specified");
908 else if (!strcmp(param1, "support"))
911 if (!strcmp(param2, "?"))
913 - Esnprintf(buf, sizeof(buf), "dockapp support: %s",
914 + snprintf(buf, sizeof(buf), "dockapp support: %s",
915 (mode.dockapp_support) ? "enabled" :
918 @@ -997,28 +997,28 @@
919 || (!strcmp(param2, "enable")))
921 mode.dockapp_support = 1;
922 - Esnprintf(buf, sizeof(buf), "dockapp support: enabled");
923 + snprintf(buf, sizeof(buf), "dockapp support: enabled");
925 else if ((!strcmp(param2, "off"))
926 || (!strcmp(param2, "disable")))
928 mode.dockapp_support = 0;
929 - Esnprintf(buf, sizeof(buf), "dockapp support: disabled");
930 + snprintf(buf, sizeof(buf), "dockapp support: disabled");
935 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
936 + snprintf(buf, sizeof(buf), "Error: no operation specified");
941 - Esnprintf(buf, sizeof(buf), "Error: unknown mode");
942 + snprintf(buf, sizeof(buf), "Error: unknown mode");
947 - Esnprintf(buf, sizeof(buf), "Error: no mode given");
948 + snprintf(buf, sizeof(buf), "Error: no mode given");
952 @@ -1036,16 +1036,16 @@
954 if (!strcmp(params, "screen_size"))
956 - Esnprintf(buf, sizeof(buf), "screen_size: %d %d", root.w, root.h);
957 + snprintf(buf, sizeof(buf), "screen_size: %d %d", root.w, root.h);
961 - Esnprintf(buf, sizeof(buf), "Error: unknown info requested");
962 + snprintf(buf, sizeof(buf), "Error: unknown info requested");
967 - Esnprintf(buf, sizeof(buf), "Error: no info requested");
968 + snprintf(buf, sizeof(buf), "Error: no info requested");
972 @@ -1096,22 +1096,22 @@
973 b = (Button *) FindItem(param1, 0, LIST_FINDBY_NAME,
976 - Esnprintf(buf, sizeof(buf), "%u references remain",
977 + snprintf(buf, sizeof(buf), "%u references remain",
982 - Esnprintf(buf, sizeof(buf), "Error: no cursor specified");
983 + snprintf(buf, sizeof(buf), "Error: no cursor specified");
988 - Esnprintf(buf, sizeof(buf), "Error: unknown operation specified");
989 + snprintf(buf, sizeof(buf), "Error: unknown operation specified");
994 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
995 + snprintf(buf, sizeof(buf), "Error: no operation specified");
999 @@ -1149,7 +1149,7 @@
1003 - Esnprintf(buf, sizeof(buf),
1004 + snprintf(buf, sizeof(buf),
1005 "%s ref_count %u\n" " bg.solid\t %i %i %i \n"
1006 " bg.file\t %s \ttop.file\t %s \n"
1008 @@ -1167,7 +1167,7 @@
1012 - Esnprintf(buf, sizeof(buf),
1013 + snprintf(buf, sizeof(buf),
1014 "Error: background '%s' does not exist.", name);
1017 @@ -1184,7 +1184,7 @@
1018 AddItem(bg, bg->name, 0, LIST_TYPE_BACKGROUND);
1021 - Esnprintf(buf, sizeof(buf),
1022 + snprintf(buf, sizeof(buf),
1023 "Error: could not create background '%s'.",
1026 @@ -1264,7 +1264,7 @@
1030 - Esnprintf(buf, sizeof(buf),
1031 + snprintf(buf, sizeof(buf),
1032 "Error: unknown background value type '%s'.",
1035 @@ -1286,12 +1286,12 @@
1039 - Esnprintf(buf, sizeof(buf),
1040 + snprintf(buf, sizeof(buf),
1041 "Error: ref_count for background '%s' is %u.",
1042 name, bg->ref_count);
1045 - Esnprintf(buf, sizeof(buf),
1046 + snprintf(buf, sizeof(buf),
1047 "Error: background '%s' does not exist.", name);
1050 @@ -1310,7 +1310,7 @@
1051 for (i = 0; i < num; i++)
1054 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1055 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1057 buf3 = realloc(buf3, strlen(buf3) + strlen(buf2) + 1);
1059 @@ -1376,22 +1376,22 @@
1060 b = (Border *) FindItem(param1, 0, LIST_FINDBY_NAME,
1063 - Esnprintf(buf, sizeof(buf), "%u references remain",
1064 + snprintf(buf, sizeof(buf), "%u references remain",
1069 - Esnprintf(buf, sizeof(buf), "Error: no cursor specified");
1070 + snprintf(buf, sizeof(buf), "Error: no cursor specified");
1075 - Esnprintf(buf, sizeof(buf), "Error: unknown operation specified");
1076 + snprintf(buf, sizeof(buf), "Error: unknown operation specified");
1081 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1082 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1086 @@ -1441,22 +1441,22 @@
1087 ec = (ECursor *) FindItem(param1, 0, LIST_FINDBY_NAME,
1090 - Esnprintf(buf, sizeof(buf), "%u references remain",
1091 + snprintf(buf, sizeof(buf), "%u references remain",
1096 - Esnprintf(buf, sizeof(buf), "Error: no cursor specified");
1097 + snprintf(buf, sizeof(buf), "Error: no cursor specified");
1102 - Esnprintf(buf, sizeof(buf), "Error: unknown operation specified");
1103 + snprintf(buf, sizeof(buf), "Error: unknown operation specified");
1108 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1109 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1113 @@ -1553,13 +1553,13 @@
1116 TextSize(t, 0, 0, STATE_NORMAL, txt, &w, &h, 17);
1117 - Esnprintf(buf, sizeof(buf), "%i %i", w, h);
1118 + snprintf(buf, sizeof(buf), "%i %i", w, h);
1121 - Esnprintf(buf, sizeof(buf), "0 0");
1122 + snprintf(buf, sizeof(buf), "0 0");
1125 - Esnprintf(buf, sizeof(buf), "TextClass %s not found",
1126 + snprintf(buf, sizeof(buf), "TextClass %s not found",
1129 else if (!strcmp(param2, "query"))
1130 @@ -1569,9 +1569,9 @@
1131 t = (TextClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1134 - Esnprintf(buf, sizeof(buf), "TextClass %s found", t->name);
1135 + snprintf(buf, sizeof(buf), "TextClass %s found", t->name);
1137 - Esnprintf(buf, sizeof(buf), "TextClass %s not found",
1138 + snprintf(buf, sizeof(buf), "TextClass %s not found",
1141 else if (!strcmp(param2, "ref_count"))
1142 @@ -1581,23 +1581,23 @@
1143 t = (TextClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1146 - Esnprintf(buf, sizeof(buf), "%u references remain.",
1147 + snprintf(buf, sizeof(buf), "%u references remain.",
1152 - Esnprintf(buf, sizeof(buf),
1153 + snprintf(buf, sizeof(buf),
1154 "Error: unknown operation specified");
1159 - Esnprintf(buf, sizeof(buf), "Error: no class specified");
1160 + snprintf(buf, sizeof(buf), "Error: no class specified");
1165 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1166 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1170 @@ -1649,23 +1649,23 @@
1172 LIST_TYPE_COLORMODIFIER);
1174 - Esnprintf(buf, sizeof(buf), "%u references remain.",
1175 + snprintf(buf, sizeof(buf), "%u references remain.",
1180 - Esnprintf(buf, sizeof(buf),
1181 + snprintf(buf, sizeof(buf),
1182 "Error: unknown operation specified");
1187 - Esnprintf(buf, sizeof(buf), "Error: no class specified");
1188 + snprintf(buf, sizeof(buf), "Error: no class specified");
1193 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1194 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1198 @@ -1715,23 +1715,23 @@
1199 a = (ActionClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1202 - Esnprintf(buf, sizeof(buf), "%u references remain.",
1203 + snprintf(buf, sizeof(buf), "%u references remain.",
1208 - Esnprintf(buf, sizeof(buf),
1209 + snprintf(buf, sizeof(buf),
1210 "Error: unknown operation specified");
1215 - Esnprintf(buf, sizeof(buf), "Error: no class specified");
1216 + snprintf(buf, sizeof(buf), "Error: no class specified");
1221 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1222 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1226 @@ -1791,11 +1791,11 @@
1227 (ImageClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1230 - Esnprintf(buf, sizeof(buf), "%i %i %i %i",
1231 + snprintf(buf, sizeof(buf), "%i %i %i %i",
1232 iclass->padding.left, iclass->padding.right,
1233 iclass->padding.top, iclass->padding.bottom);
1235 - Esnprintf(buf, sizeof(buf),
1236 + snprintf(buf, sizeof(buf),
1237 "Error: Imageclass does not exist");
1239 else if (!strcmp(param2, "get_image_size"))
1240 @@ -1820,20 +1820,20 @@
1244 - Esnprintf(buf, sizeof(buf), "%i %i",
1245 + snprintf(buf, sizeof(buf), "%i %i",
1246 im->rgb_width, im->rgb_height);
1247 Imlib_destroy_image(pImlibData, im);
1250 - Esnprintf(buf, sizeof(buf),
1251 + snprintf(buf, sizeof(buf),
1252 "Error: Image does not exist");
1255 - Esnprintf(buf, sizeof(buf),
1256 + snprintf(buf, sizeof(buf),
1257 "Error: Image does not exist");
1260 - Esnprintf(buf, sizeof(buf),
1261 + snprintf(buf, sizeof(buf),
1262 "Error: Imageclass does not exist");
1264 else if (!strcmp(param2, "apply"))
1265 @@ -1898,7 +1898,7 @@
1268 if (!(hptr = atword(params, 6)))
1269 - Esnprintf(buf, sizeof(buf),
1270 + snprintf(buf, sizeof(buf),
1271 "Error: missing width and/or height");
1274 @@ -1910,7 +1910,7 @@
1275 IclassApplyCopy(iclass, win, w, h, 0, 0, st, &pmap,
1278 - Esnprintf(buf, sizeof(buf), "0x%08x 0x%08x", pmap,
1279 + snprintf(buf, sizeof(buf), "0x%08x 0x%08x", pmap,
1283 @@ -1922,7 +1922,7 @@
1284 i = (ImageClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1287 - Esnprintf(buf, sizeof(buf), "%u references remain",
1288 + snprintf(buf, sizeof(buf), "%u references remain",
1291 else if (!strcmp(param2, "query"))
1292 @@ -1932,26 +1932,26 @@
1293 i = (ImageClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
1296 - Esnprintf(buf, sizeof(buf), "ImageClass %s found",
1297 + snprintf(buf, sizeof(buf), "ImageClass %s found",
1300 - Esnprintf(buf, sizeof(buf), "ImageClass %s not found",
1301 + snprintf(buf, sizeof(buf), "ImageClass %s not found",
1306 - Esnprintf(buf, sizeof(buf),
1307 + snprintf(buf, sizeof(buf),
1308 "Error: unknown operation specified");
1313 - Esnprintf(buf, sizeof(buf), "Error: no class specified");
1314 + snprintf(buf, sizeof(buf), "Error: no class specified");
1319 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1320 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1324 @@ -1991,7 +1991,7 @@
1328 - Esnprintf(buf, sizeof(buf), "Error: no file specified");
1329 + snprintf(buf, sizeof(buf), "Error: no file specified");
1332 else if (!strcmp(param1, "delete"))
1333 @@ -2002,18 +2002,18 @@
1337 - Esnprintf(buf, sizeof(buf),
1338 + snprintf(buf, sizeof(buf),
1339 "Error: unknown operation specified");
1344 - Esnprintf(buf, sizeof(buf), "Error: no class specified");
1345 + snprintf(buf, sizeof(buf), "Error: no class specified");
1350 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
1351 + snprintf(buf, sizeof(buf), "Error: no operation specified");
1355 @@ -2035,11 +2035,11 @@
1357 ApplySclass(soundtoplay);
1359 - Esnprintf(buf, sizeof(buf), "Error: unknown soundclass selected");
1360 + snprintf(buf, sizeof(buf), "Error: unknown soundclass selected");
1364 - Esnprintf(buf, sizeof(buf), "Error: no soundclass selected");
1365 + snprintf(buf, sizeof(buf), "Error: no soundclass selected");
1369 @@ -2064,7 +2064,7 @@
1370 for (i = 0; i < num; i++)
1373 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1374 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1376 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1378 @@ -2085,7 +2085,7 @@
1379 for (i = 0; i < num; i++)
1382 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1383 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1385 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1387 @@ -2106,7 +2106,7 @@
1388 for (i = 0; i < num; i++)
1391 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1392 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1394 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1396 @@ -2127,7 +2127,7 @@
1397 for (i = 0; i < num; i++)
1400 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1401 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1403 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1405 @@ -2148,7 +2148,7 @@
1406 for (i = 0; i < num; i++)
1409 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1410 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1412 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1414 @@ -2169,7 +2169,7 @@
1415 for (i = 0; i < num; i++)
1418 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1419 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1421 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1423 @@ -2190,7 +2190,7 @@
1424 for (i = 0; i < num; i++)
1427 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1428 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1430 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1432 @@ -2211,7 +2211,7 @@
1433 for (i = 0; i < num; i++)
1436 - Esnprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1437 + snprintf(buf2, sizeof(buf2), "%s\n", lst[i]->name);
1439 buf = realloc(buf, strlen(buf) + strlen(buf2) + 1);
1441 @@ -2249,7 +2249,7 @@
1442 DIALOG_OK(_("Message"), params);
1445 - Esnprintf(buf, sizeof(buf), "Error: No text for dialog specified");
1446 + snprintf(buf, sizeof(buf), "Error: No text for dialog specified");
1450 @@ -2271,12 +2271,12 @@
1451 my_focused_win = GetFocusEwin();
1454 - Esnprintf(buf, sizeof(buf), "focused: %8x",
1455 + snprintf(buf, sizeof(buf), "focused: %8x",
1456 my_focused_win->client.win);
1460 - Esnprintf(buf, sizeof(buf), "focused: none");
1461 + snprintf(buf, sizeof(buf), "focused: none");
1465 @@ -2291,7 +2291,7 @@
1469 - Esnprintf(buf, sizeof(buf), "Error: no window selected");
1470 + snprintf(buf, sizeof(buf), "Error: no window selected");
1474 @@ -2328,16 +2328,16 @@
1476 if (mode.all_new_windows_get_focus)
1478 - Esnprintf(buf, sizeof(buf), "new_window_focus: on");
1479 + snprintf(buf, sizeof(buf), "new_window_focus: on");
1483 - Esnprintf(buf, sizeof(buf), "new_window_focus: off");
1484 + snprintf(buf, sizeof(buf), "new_window_focus: off");
1489 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1490 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1493 else if (!strcmp(param1, "focus_list"))
1494 @@ -2354,16 +2354,16 @@
1496 if (mode.display_warp)
1498 - Esnprintf(buf, sizeof(buf), "focus_list: on");
1499 + snprintf(buf, sizeof(buf), "focus_list: on");
1503 - Esnprintf(buf, sizeof(buf), "focus_list: off");
1504 + snprintf(buf, sizeof(buf), "focus_list: off");
1509 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1510 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1513 else if (!strcmp(param1, "new_popup_window_focus"))
1514 @@ -2380,18 +2380,18 @@
1516 if (mode.new_transients_get_focus)
1518 - Esnprintf(buf, sizeof(buf),
1519 + snprintf(buf, sizeof(buf),
1520 "new_popup_window_focus: on");
1524 - Esnprintf(buf, sizeof(buf),
1525 + snprintf(buf, sizeof(buf),
1526 "new_popup_window_focus: off");
1531 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1532 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1535 else if (!strcmp(param1, "new_popup_of_owner_focus"))
1536 @@ -2408,18 +2408,18 @@
1538 if (mode.new_transients_get_focus_if_group_focused)
1540 - Esnprintf(buf, sizeof(buf),
1541 + snprintf(buf, sizeof(buf),
1542 "new_popup_of_owner_focus: on");
1546 - Esnprintf(buf, sizeof(buf),
1547 + snprintf(buf, sizeof(buf),
1548 "new_popup_of_owner_focus: off");
1553 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1554 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1557 else if (!strcmp(param1, "raise_on_keyboard_focus_switch"))
1558 @@ -2436,18 +2436,18 @@
1560 if (mode.raise_on_next_focus)
1562 - Esnprintf(buf, sizeof(buf),
1563 + snprintf(buf, sizeof(buf),
1564 "raise_on_keyboard_focus_switch: on");
1568 - Esnprintf(buf, sizeof(buf),
1569 + snprintf(buf, sizeof(buf),
1570 "raise_on_keyboard_focus_switch: off");
1575 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1576 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1579 else if (!strcmp(param1, "raise_after_keyboard_focus_switch"))
1580 @@ -2464,18 +2464,18 @@
1582 if (mode.raise_after_next_focus)
1584 - Esnprintf(buf, sizeof(buf),
1585 + snprintf(buf, sizeof(buf),
1586 "raise_after_keyboard_focus_switch: on");
1590 - Esnprintf(buf, sizeof(buf),
1591 + snprintf(buf, sizeof(buf),
1592 "raise_after_keyboard_focus_switch: off");
1597 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1598 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1601 else if (!strcmp(param1, "display_warp"))
1602 @@ -2492,16 +2492,16 @@
1604 if (mode.display_warp)
1606 - Esnprintf(buf, sizeof(buf), "display_warp: on");
1607 + snprintf(buf, sizeof(buf), "display_warp: on");
1611 - Esnprintf(buf, sizeof(buf), "display_warp: off");
1612 + snprintf(buf, sizeof(buf), "display_warp: off");
1617 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1618 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1621 else if (!strcmp(param1, "pointer_to_keyboard_focus_window"))
1622 @@ -2518,18 +2518,18 @@
1624 if (mode.warp_on_next_focus)
1626 - Esnprintf(buf, sizeof(buf),
1627 + snprintf(buf, sizeof(buf),
1628 "pointer_to_keyboard_focus_window: on");
1632 - Esnprintf(buf, sizeof(buf),
1633 + snprintf(buf, sizeof(buf),
1634 "pointer_to_keyboard_focus_window: off");
1639 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1640 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1643 else if (!strcmp(param1, "pointer_after_keyboard_focus_window"))
1644 @@ -2546,18 +2546,18 @@
1646 if (mode.warp_after_next_focus)
1648 - Esnprintf(buf, sizeof(buf),
1649 + snprintf(buf, sizeof(buf),
1650 "pointer_after_keyboard_focus_window: on");
1654 - Esnprintf(buf, sizeof(buf),
1655 + snprintf(buf, sizeof(buf),
1656 "pointer_after_keyboard_focus_window: off");
1661 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1662 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1665 else if (!strcmp(param1, "transients_follow_leader"))
1666 @@ -2574,18 +2574,18 @@
1668 if (mode.transientsfollowleader)
1670 - Esnprintf(buf, sizeof(buf),
1671 + snprintf(buf, sizeof(buf),
1672 "transients_follow_leader: on");
1676 - Esnprintf(buf, sizeof(buf),
1677 + snprintf(buf, sizeof(buf),
1678 "transients_follow_leader: off");
1683 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1684 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1687 else if (!strcmp(param1, "switch_to_popup_location"))
1688 @@ -2602,18 +2602,18 @@
1690 if (mode.switchfortransientmap)
1692 - Esnprintf(buf, sizeof(buf),
1693 + snprintf(buf, sizeof(buf),
1694 "switch_to_popup_location: on");
1698 - Esnprintf(buf, sizeof(buf),
1699 + snprintf(buf, sizeof(buf),
1700 "switch_to_popup_location: off");
1705 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1706 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1709 else if (!strcmp(param1, "manual_placement"))
1710 @@ -2630,16 +2630,16 @@
1712 if (mode.manual_placement)
1714 - Esnprintf(buf, sizeof(buf), "manual_placement: on");
1715 + snprintf(buf, sizeof(buf), "manual_placement: on");
1719 - Esnprintf(buf, sizeof(buf), "manual_placement: off");
1720 + snprintf(buf, sizeof(buf), "manual_placement: off");
1725 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1726 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1729 else if (!strcmp(param1, "manual_placement_mouse_pointer"))
1730 @@ -2656,28 +2656,28 @@
1732 if (mode.manual_placement_mouse_pointer)
1734 - Esnprintf(buf, sizeof(buf),
1735 + snprintf(buf, sizeof(buf),
1736 "manual_placement_mouse_pointer: on");
1740 - Esnprintf(buf, sizeof(buf),
1741 + snprintf(buf, sizeof(buf),
1742 "manual_placement_mouse_pointer: off");
1747 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1748 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1753 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1754 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1759 - Esnprintf(buf, sizeof(buf), "Error: no mode selected");
1760 + snprintf(buf, sizeof(buf), "Error: no mode selected");
1764 @@ -2705,7 +2705,7 @@
1768 - Esnprintf(buf2, sizeof(buf2), "%8x\n",
1769 + snprintf(buf2, sizeof(buf2), "%8x\n",
1770 lst[i]->client.win);
1773 @@ -2717,7 +2717,7 @@
1777 - Esnprintf(buf2, sizeof(buf2), "%8x\n",
1778 + snprintf(buf2, sizeof(buf2), "%8x\n",
1779 lst[i]->client.win);
1782 @@ -2729,7 +2729,7 @@
1786 - Esnprintf(buf2, sizeof(buf2), "%8x\n",
1787 + snprintf(buf2, sizeof(buf2), "%8x\n",
1788 lst[i]->client.win);
1791 @@ -2741,7 +2741,7 @@
1793 if (lst[i]->internal)
1795 - Esnprintf(buf2, sizeof(buf2), "%8x\n",
1796 + snprintf(buf2, sizeof(buf2), "%8x\n",
1797 lst[i]->client.win);
1800 @@ -2749,7 +2749,7 @@
1804 - Esnprintf(buf, sizeof(buf),
1805 + snprintf(buf, sizeof(buf),
1806 "Error: unknown internal list specified");
1809 @@ -2788,11 +2788,11 @@
1811 if (mode.show_pagers)
1813 - Esnprintf(buf, sizeof(buf), "pager: on");
1814 + snprintf(buf, sizeof(buf), "pager: on");
1818 - Esnprintf(buf, sizeof(buf), "pager: off");
1819 + snprintf(buf, sizeof(buf), "pager: off");
1822 else if (!strcmp(param1, "hiq"))
1823 @@ -2802,11 +2802,11 @@
1827 - Esnprintf(buf, sizeof(buf), "pager_hiq: on");
1828 + snprintf(buf, sizeof(buf), "pager_hiq: on");
1832 - Esnprintf(buf, sizeof(buf), "pager_hiq: off");
1833 + snprintf(buf, sizeof(buf), "pager_hiq: off");
1836 else if (!strcmp(param2, "on"))
1837 @@ -2819,7 +2819,7 @@
1841 - Esnprintf(buf, sizeof(buf), "Error: unknown mode selected");
1842 + snprintf(buf, sizeof(buf), "Error: unknown mode selected");
1846 @@ -2849,13 +2849,13 @@
1850 - Esnprintf(buf, sizeof(buf),
1851 + snprintf(buf, sizeof(buf),
1852 "Error: unknown mode selected");
1857 - Esnprintf(buf, sizeof(buf), "Error: no mode selected");
1858 + snprintf(buf, sizeof(buf), "Error: no mode selected");
1861 else if (!strcmp(param1, "title"))
1862 @@ -2884,7 +2884,7 @@
1866 - Esnprintf(buf, sizeof(buf), "Error: no mode selected");
1867 + snprintf(buf, sizeof(buf), "Error: no mode selected");
1871 @@ -2895,7 +2895,7 @@
1873 if (!strcmp(param2, "?"))
1875 - Esnprintf(buf, sizeof(buf), "pager_scanrate: %d",
1876 + snprintf(buf, sizeof(buf), "pager_scanrate: %d",
1877 mode.pager_scanspeed);
1880 @@ -2905,7 +2905,7 @@
1884 - Esnprintf(buf, sizeof(buf), "Error: no scanrate specified.");
1885 + snprintf(buf, sizeof(buf), "Error: no scanrate specified.");
1888 else if (!strcmp(param1, "snap"))
1889 @@ -2915,11 +2915,11 @@
1893 - Esnprintf(buf, sizeof(buf), "pager_snap: on");
1894 + snprintf(buf, sizeof(buf), "pager_snap: on");
1898 - Esnprintf(buf, sizeof(buf), "pager_snap: off");
1899 + snprintf(buf, sizeof(buf), "pager_snap: off");
1902 else if (!strcmp(param2, "on"))
1903 @@ -2955,12 +2955,12 @@
1905 else if (!strcmp(param3, "?"))
1907 - Esnprintf(buf, sizeof(buf), "Desk %s: %i pagers", param2,
1908 + snprintf(buf, sizeof(buf), "Desk %s: %i pagers", param2,
1909 PagerForDesktop(atoi(param2)));
1913 - Esnprintf(buf, sizeof(buf),
1914 + snprintf(buf, sizeof(buf),
1915 "Error: unknown mode specified");
1918 @@ -2968,22 +2968,22 @@
1922 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
1923 + snprintf(buf, sizeof(buf), "Error: no mode specified");
1927 - Esnprintf(buf, sizeof(buf), "Error: no desk specified");
1928 + snprintf(buf, sizeof(buf), "Error: no desk specified");
1934 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
1935 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
1940 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
1941 + snprintf(buf, sizeof(buf), "Error: no mode specified");
1945 @@ -3028,29 +3028,29 @@
1948 if (mode.movemode == 1)
1949 - Esnprintf(buf, sizeof(buf), "movemode: lined");
1950 + snprintf(buf, sizeof(buf), "movemode: lined");
1951 else if (mode.movemode == 2)
1952 - Esnprintf(buf, sizeof(buf), "movemode: box");
1953 + snprintf(buf, sizeof(buf), "movemode: box");
1954 else if (mode.movemode == 3)
1955 - Esnprintf(buf, sizeof(buf), "movemode: shaded");
1956 + snprintf(buf, sizeof(buf), "movemode: shaded");
1957 else if (mode.movemode == 4)
1958 - Esnprintf(buf, sizeof(buf), "movemode: semi-solid");
1959 + snprintf(buf, sizeof(buf), "movemode: semi-solid");
1960 else if (mode.movemode == 5)
1961 - Esnprintf(buf, sizeof(buf), "movemode: translucent");
1962 + snprintf(buf, sizeof(buf), "movemode: translucent");
1966 - Esnprintf(buf, sizeof(buf), "movemode: opaque");
1967 + snprintf(buf, sizeof(buf), "movemode: opaque");
1972 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
1973 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
1978 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
1979 + snprintf(buf, sizeof(buf), "Error: no mode specified");
1983 @@ -3091,27 +3091,27 @@
1984 if (mode.resizemode)
1986 if (mode.resizemode == 1)
1987 - Esnprintf(buf, sizeof(buf), "resizemode: lined");
1988 + snprintf(buf, sizeof(buf), "resizemode: lined");
1989 else if (mode.resizemode == 2)
1990 - Esnprintf(buf, sizeof(buf), "resizemode: box");
1991 + snprintf(buf, sizeof(buf), "resizemode: box");
1992 else if (mode.resizemode == 3)
1993 - Esnprintf(buf, sizeof(buf), "resizemode: shaded");
1994 + snprintf(buf, sizeof(buf), "resizemode: shaded");
1995 else if (mode.resizemode == 4)
1996 - Esnprintf(buf, sizeof(buf), "resizemode: semi-solid");
1997 + snprintf(buf, sizeof(buf), "resizemode: semi-solid");
2001 - Esnprintf(buf, sizeof(buf), "resizemode: opaque");
2002 + snprintf(buf, sizeof(buf), "resizemode: opaque");
2007 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2008 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2013 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
2014 + snprintf(buf, sizeof(buf), "Error: no mode specified");
2018 @@ -3144,23 +3144,23 @@
2019 if (mode.geominfomode)
2021 if (mode.geominfomode == 1)
2022 - Esnprintf(buf, sizeof(buf), "geominfomode: center");
2023 + snprintf(buf, sizeof(buf), "geominfomode: center");
2024 else if (mode.geominfomode == 2)
2025 - Esnprintf(buf, sizeof(buf), "geominfomode: corner");
2026 + snprintf(buf, sizeof(buf), "geominfomode: corner");
2030 - Esnprintf(buf, sizeof(buf), "geominfomode: never");
2031 + snprintf(buf, sizeof(buf), "geominfomode: never");
2036 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2037 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2042 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
2043 + snprintf(buf, sizeof(buf), "Error: no mode specified");
2047 @@ -3196,10 +3196,10 @@
2048 else if (!strcmp(word2, "off"))
2049 FX_Op(word1, FX_OP_STOP);
2050 else if (!strcmp(word2, "?"))
2051 - Esnprintf(buf, sizeof(buf), "%s: %s", word1,
2052 + snprintf(buf, sizeof(buf), "%s: %s", word1,
2053 FX_IsOn(word1) ? "on" : "off");
2055 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2056 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2058 else if (!strcmp(word1, "deskslide"))
2060 @@ -3215,13 +3215,13 @@
2061 else if (!strcmp(word2, "?"))
2064 - Esnprintf(buf, sizeof(buf), "deskslide: on");
2065 + snprintf(buf, sizeof(buf), "deskslide: on");
2067 - Esnprintf(buf, sizeof(buf), "deskslide: off");
2068 + snprintf(buf, sizeof(buf), "deskslide: off");
2072 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2073 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2076 else if (!strcmp(word1, "mapslide"))
2077 @@ -3238,13 +3238,13 @@
2078 else if (!strcmp(word2, "?"))
2081 - Esnprintf(buf, sizeof(buf), "mapslide: on");
2082 + snprintf(buf, sizeof(buf), "mapslide: on");
2084 - Esnprintf(buf, sizeof(buf), "mapslide: off");
2085 + snprintf(buf, sizeof(buf), "mapslide: off");
2089 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2090 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2093 else if (!strcmp(word1, "menu_animate"))
2094 @@ -3261,13 +3261,13 @@
2095 else if (!strcmp(word2, "?"))
2098 - Esnprintf(buf, sizeof(buf), "menu_animate: on");
2099 + snprintf(buf, sizeof(buf), "menu_animate: on");
2101 - Esnprintf(buf, sizeof(buf), "menu_animate: off");
2102 + snprintf(buf, sizeof(buf), "menu_animate: off");
2106 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2107 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2110 else if (!strcmp(word1, "animate_win_shading"))
2111 @@ -3284,13 +3284,13 @@
2112 else if (!strcmp(word2, "?"))
2114 if (mode.animate_shading)
2115 - Esnprintf(buf, sizeof(buf), "animate_win_shading: on");
2116 + snprintf(buf, sizeof(buf), "animate_win_shading: on");
2118 - Esnprintf(buf, sizeof(buf), "animate_win_shading: off");
2119 + snprintf(buf, sizeof(buf), "animate_win_shading: off");
2123 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2124 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2127 else if (!strcmp(word1, "window_shade_speed"))
2128 @@ -3300,12 +3300,12 @@
2130 if (mode.animate_shading)
2132 - Esnprintf(buf, sizeof(buf), "shadespeed: %d seconds",
2133 + snprintf(buf, sizeof(buf), "shadespeed: %d seconds",
2138 - Esnprintf(buf, sizeof(buf), "shadespeed: off");
2139 + snprintf(buf, sizeof(buf), "shadespeed: off");
2143 @@ -3360,29 +3360,29 @@
2145 if (desks.dragdir == 1)
2147 - Esnprintf(buf, sizeof(buf), "Dragbar: right");
2148 + snprintf(buf, sizeof(buf), "Dragbar: right");
2150 else if (desks.dragdir == 2)
2152 - Esnprintf(buf, sizeof(buf), "Dragbar: top");
2153 + snprintf(buf, sizeof(buf), "Dragbar: top");
2155 else if (desks.dragdir == 3)
2157 - Esnprintf(buf, sizeof(buf), "Dragbar: bottom");
2158 + snprintf(buf, sizeof(buf), "Dragbar: bottom");
2162 - Esnprintf(buf, sizeof(buf), "Dragbar: left");
2163 + snprintf(buf, sizeof(buf), "Dragbar: left");
2168 - Esnprintf(buf, sizeof(buf), "Dragbar: off");
2169 + snprintf(buf, sizeof(buf), "Dragbar: off");
2174 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2175 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2179 @@ -3421,12 +3421,12 @@
2183 - Esnprintf(buf, sizeof(buf), "tooltips: %f seconds",
2184 + snprintf(buf, sizeof(buf), "tooltips: %f seconds",
2189 - Esnprintf(buf, sizeof(buf), "tooltips: off");
2190 + snprintf(buf, sizeof(buf), "tooltips: off");
2194 @@ -3451,13 +3451,13 @@
2196 if (mode.edge_flip_resistance >= 0)
2198 - Esnprintf(buf, sizeof(buf),
2199 + snprintf(buf, sizeof(buf),
2200 "edge_resistance: %d / 100 seconds",
2201 mode.edge_flip_resistance);
2205 - Esnprintf(buf, sizeof(buf), "edge_resistance: off");
2206 + snprintf(buf, sizeof(buf), "edge_resistance: off");
2210 @@ -3467,7 +3467,7 @@
2214 - Esnprintf(buf, sizeof(buf), "Error: no time given");
2215 + snprintf(buf, sizeof(buf), "Error: no time given");
2218 else if (!strcmp(word1, "edge_snap_distance"))
2219 @@ -3477,7 +3477,7 @@
2221 if (!strcmp(word2, "?"))
2223 - Esnprintf(buf, sizeof(buf), "edge_snap_distance: %d",
2224 + snprintf(buf, sizeof(buf), "edge_snap_distance: %d",
2225 mode.edge_snap_dist);
2228 @@ -3487,7 +3487,7 @@
2232 - Esnprintf(buf, sizeof(buf), "Error: no pixel distance given");
2233 + snprintf(buf, sizeof(buf), "Error: no pixel distance given");
2236 else if (!strcmp(word1, "autoraise"))
2237 @@ -3505,12 +3505,12 @@
2241 - Esnprintf(buf, sizeof(buf), "autoraise: %f seconds",
2242 + snprintf(buf, sizeof(buf), "autoraise: %f seconds",
2243 mode.autoraisetime);
2247 - Esnprintf(buf, sizeof(buf), "autoraise: off");
2248 + snprintf(buf, sizeof(buf), "autoraise: off");
2252 @@ -3562,23 +3562,23 @@
2253 else if (!strcmp(word2, "?"))
2256 - Esnprintf(buf, sizeof(buf), "audio: on");
2257 + snprintf(buf, sizeof(buf), "audio: on");
2259 - Esnprintf(buf, sizeof(buf), "audio: off");
2260 + snprintf(buf, sizeof(buf), "audio: off");
2264 - Esnprintf(buf, sizeof(buf), "Error: unknown mode specified");
2265 + snprintf(buf, sizeof(buf), "Error: unknown mode specified");
2270 - Esnprintf(buf, sizeof(buf), "Error: unknown effect specified");
2271 + snprintf(buf, sizeof(buf), "Error: unknown effect specified");
2276 - Esnprintf(buf, sizeof(buf), "Error: no effect specified");
2277 + snprintf(buf, sizeof(buf), "Error: no effect specified");
2281 @@ -3615,25 +3615,25 @@
2283 if (mode.activenetwork)
2285 - Esnprintf(buf, sizeof(buf), "Active network: on");
2286 + snprintf(buf, sizeof(buf), "Active network: on");
2290 - Esnprintf(buf, sizeof(buf), "Active network: off");
2291 + snprintf(buf, sizeof(buf), "Active network: off");
2296 - Esnprintf(buf, sizeof(buf), "Error: unknown state.");
2297 + snprintf(buf, sizeof(buf), "Error: unknown state.");
2301 - Esnprintf(buf, sizeof(buf),
2302 + snprintf(buf, sizeof(buf),
2303 "Active Network not compiled into this version of E");
2307 - Esnprintf(buf, sizeof(buf), "Error: no state specified");
2308 + snprintf(buf, sizeof(buf), "Error: no state specified");
2312 @@ -3672,7 +3672,7 @@
2313 e->client.title = none;
2316 - Esnprintf(buf, sizeof(buf),
2317 + snprintf(buf, sizeof(buf),
2318 "%8x : %s :: %d : %d %d : %d %d\n",
2319 e->client.win, e->client.title,
2320 (e->sticky) ? -1 : e->desktop, e->area_x, e->area_y,
2321 @@ -3680,7 +3680,7 @@
2325 - Esnprintf(buf, sizeof(buf), "%8x : %s\n", e->client.win,
2326 + snprintf(buf, sizeof(buf), "%8x : %s\n", e->client.win,
2330 @@ -3722,7 +3722,7 @@
2334 - Esnprintf(buf, sizeof(buf), "Error: no area specified");
2335 + snprintf(buf, sizeof(buf), "Error: no area specified");
2339 @@ -3770,7 +3770,7 @@
2340 else if (!strcmp(param1, "?"))
2342 GetCurrentArea(&a, &b);
2343 - Esnprintf(buf, sizeof(buf), "Current Area: %d %d", a, b);
2344 + snprintf(buf, sizeof(buf), "Current Area: %d %d", a, b);
2348 @@ -3822,7 +3822,7 @@
2349 word(params, 2, operation);
2352 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
2353 + snprintf(buf, sizeof(buf), "Error: no operation specified");
2357 @@ -3831,7 +3831,7 @@
2358 ewin = FindEwinByChildren(win);
2361 - Esnprintf(buf, sizeof(buf), "Error: no such window: %8x",
2362 + snprintf(buf, sizeof(buf), "Error: no such window: %8x",
2366 @@ -3868,15 +3868,15 @@
2367 else if (!strcmp(param1, "?"))
2369 if (ewin->iconified)
2370 - Esnprintf(buf, sizeof(buf),
2371 + snprintf(buf, sizeof(buf),
2372 "window iconified: yes");
2374 - Esnprintf(buf, sizeof(buf),
2375 + snprintf(buf, sizeof(buf),
2376 "window iconified: no");
2380 - Esnprintf(buf, sizeof(buf),
2381 + snprintf(buf, sizeof(buf),
2382 "Error: unknown mode specified");
2385 @@ -3906,15 +3906,15 @@
2386 else if (!strcmp(param1, "?"))
2389 - Esnprintf(buf, sizeof(buf),
2390 + snprintf(buf, sizeof(buf),
2391 "window shaded: yes");
2393 - Esnprintf(buf, sizeof(buf),
2394 + snprintf(buf, sizeof(buf),
2395 "window shaded: no");
2399 - Esnprintf(buf, sizeof(buf),
2400 + snprintf(buf, sizeof(buf),
2401 "Error: unknown mode specified");
2404 @@ -3944,15 +3944,15 @@
2405 else if (!strcmp(param1, "?"))
2408 - Esnprintf(buf, sizeof(buf),
2409 + snprintf(buf, sizeof(buf),
2410 "window sticky: yes");
2412 - Esnprintf(buf, sizeof(buf),
2413 + snprintf(buf, sizeof(buf),
2414 "window sticky: no");
2418 - Esnprintf(buf, sizeof(buf),
2419 + snprintf(buf, sizeof(buf),
2420 "Error: unknown mode specified");
2423 @@ -3979,7 +3979,7 @@
2424 if (!strncmp(ptr, "?", 1))
2426 /* return the window title */
2427 - Esnprintf(buf, sizeof(buf),
2428 + snprintf(buf, sizeof(buf),
2430 ewin->client.title);
2432 @@ -4001,7 +4001,7 @@
2436 - Esnprintf(buf, sizeof(buf),
2437 + snprintf(buf, sizeof(buf),
2438 "Error: no title specified");
2441 @@ -4034,7 +4034,7 @@
2442 word(params, 3, param1);
2443 if (!strcmp(param1, "?"))
2445 - Esnprintf(buf, sizeof(buf),
2446 + snprintf(buf, sizeof(buf),
2447 "window layer: %d", ewin->layer);
2450 @@ -4057,7 +4057,7 @@
2452 if (ewin->border->name)
2454 - Esnprintf(buf, sizeof(buf),
2455 + snprintf(buf, sizeof(buf),
2456 "window border: %s",
2457 ewin->border->name);
2459 @@ -4081,7 +4081,7 @@
2463 - Esnprintf(buf, sizeof(buf),
2464 + snprintf(buf, sizeof(buf),
2465 "Error: no border specified");
2468 @@ -4106,7 +4106,7 @@
2470 else if (!strcmp(param1, "?"))
2472 - Esnprintf(buf, sizeof(buf), "window desk: %d",
2473 + snprintf(buf, sizeof(buf), "window desk: %d",
2477 @@ -4119,7 +4119,7 @@
2481 - Esnprintf(buf, sizeof(buf),
2482 + snprintf(buf, sizeof(buf),
2483 "Error: no desktop supplied");
2486 @@ -4132,7 +4132,7 @@
2488 if (!strcmp(param1, "?"))
2490 - Esnprintf(buf, sizeof(buf),
2491 + snprintf(buf, sizeof(buf),
2492 "window area: %d %d", ewin->area_x,
2495 @@ -4144,7 +4144,7 @@
2499 - Esnprintf(buf, sizeof(buf),
2500 + snprintf(buf, sizeof(buf),
2501 "Error: no area supplied");
2504 @@ -4165,13 +4165,13 @@
2506 if (!strcmp(param1, "?"))
2508 - Esnprintf(buf, sizeof(buf),
2509 + snprintf(buf, sizeof(buf),
2510 "window location: %d %d", ewin->x,
2513 else if (!strcmp(param1, "??"))
2515 - Esnprintf(buf, sizeof(buf),
2516 + snprintf(buf, sizeof(buf),
2517 "client location: %d %d",
2518 ewin->x + ewin->border->border.left,
2519 ewin->y + ewin->border->border.top);
2520 @@ -4185,7 +4185,7 @@
2524 - Esnprintf(buf, sizeof(buf),
2525 + snprintf(buf, sizeof(buf),
2526 "Error: no coords supplied");
2529 @@ -4198,13 +4198,13 @@
2531 if (!strcmp(param1, "?"))
2533 - Esnprintf(buf, sizeof(buf),
2534 + snprintf(buf, sizeof(buf),
2535 "window size: %d %d", ewin->client.w,
2538 else if (!strcmp(param1, "??"))
2540 - Esnprintf(buf, sizeof(buf),
2541 + snprintf(buf, sizeof(buf),
2542 "frame size: %d %d", ewin->w,
2545 @@ -4249,11 +4249,11 @@
2547 if (ewin == GetFocusEwin())
2549 - Esnprintf(buf, sizeof(buf), "focused: yes");
2550 + snprintf(buf, sizeof(buf), "focused: yes");
2554 - Esnprintf(buf, sizeof(buf), "focused: no");
2555 + snprintf(buf, sizeof(buf), "focused: no");
2559 @@ -4263,14 +4263,14 @@
2563 - Esnprintf(buf, sizeof(buf), "Error: unknown operation");
2564 + snprintf(buf, sizeof(buf), "Error: unknown operation");
2571 - Esnprintf(buf, sizeof(buf), "Error: no window specified");
2572 + snprintf(buf, sizeof(buf), "Error: no window specified");
2576 @@ -4290,7 +4290,7 @@
2579 GetAreaSize(&ax, &ay);
2580 - Esnprintf(buf, sizeof(buf), "Number of Areas: %d %d", ax, ay);
2581 + snprintf(buf, sizeof(buf), "Number of Areas: %d %d", ax, ay);
2585 @@ -4303,7 +4303,7 @@
2589 - Esnprintf(buf, sizeof(buf), "Error: number of areas not given");
2590 + snprintf(buf, sizeof(buf), "Error: number of areas not given");
2594 @@ -4320,7 +4320,7 @@
2596 if (!strcmp(params, "?"))
2598 - Esnprintf(buf, sizeof(buf), "Number of Desks: %d",
2599 + snprintf(buf, sizeof(buf), "Number of Desks: %d",
2603 @@ -4330,7 +4330,7 @@
2607 - Esnprintf(buf, sizeof(buf), "Error: number of desks not given");
2608 + snprintf(buf, sizeof(buf), "Error: number of desks not given");
2612 @@ -4365,7 +4365,7 @@
2614 else if (!strcmp(params, "?"))
2616 - Esnprintf(buf, sizeof(buf), "Focus Mode: ");
2617 + snprintf(buf, sizeof(buf), "Focus Mode: ");
2618 if (mode.focusmode == 2)
2620 if (mode.click_focus_grabbed)
2621 @@ -4392,12 +4392,12 @@
2625 - Esnprintf(buf, sizeof(buf), "Error: unknown focus type");
2626 + snprintf(buf, sizeof(buf), "Error: unknown focus type");
2631 - Esnprintf(buf, sizeof(buf), "Error: no focus type given");
2632 + snprintf(buf, sizeof(buf), "Error: no focus type given");
2636 @@ -4417,7 +4417,7 @@
2640 - Esnprintf(buf, sizeof(buf), "Error: no desktop selected");
2641 + snprintf(buf, sizeof(buf), "Error: no desktop selected");
2645 @@ -4431,7 +4431,7 @@
2647 else if (!strcmp(params, "?"))
2649 - Esnprintf(buf, sizeof(buf), "Current Desktop: %d", desks.current);
2650 + snprintf(buf, sizeof(buf), "Current Desktop: %d", desks.current);
2654 @@ -4491,7 +4491,7 @@
2656 if (!strcmp(params, "?"))
2658 - Esnprintf(buf, sizeof(buf), GetSMFile());
2659 + snprintf(buf, sizeof(buf), GetSMFile());
2663 @@ -4500,7 +4500,7 @@
2667 - Esnprintf(buf, sizeof(buf), "Error: no file prefix specified");
2668 + snprintf(buf, sizeof(buf), "Error: no file prefix specified");
2672 @@ -4539,13 +4539,13 @@
2676 - Esnprintf(buf, sizeof(buf), "restart_wm %s", params);
2677 + snprintf(buf, sizeof(buf), "restart_wm %s", params);
2683 - Esnprintf(buf, sizeof(buf), "Error: no window manager specified");
2684 + snprintf(buf, sizeof(buf), "Error: no window manager specified");
2688 @@ -4557,13 +4557,13 @@
2692 - Esnprintf(buf, sizeof(buf), "restart_theme %s", params);
2693 + snprintf(buf, sizeof(buf), "restart_theme %s", params);
2699 - Esnprintf(buf, sizeof(buf), "Error: no theme specified");
2700 + snprintf(buf, sizeof(buf), "Error: no theme specified");
2704 @@ -4591,7 +4591,7 @@
2706 if (!strcmp(params, "?"))
2708 - Esnprintf(buf, sizeof(buf), "%s", GetDefaultTheme());
2709 + snprintf(buf, sizeof(buf), "%s", GetDefaultTheme());
2713 @@ -4600,13 +4600,13 @@
2714 char restartcommand[FILEPATH_LEN_MAX];
2716 SetDefaultTheme(params);
2717 - Esnprintf(restartcommand, sizeof(restartcommand),
2718 + snprintf(restartcommand, sizeof(restartcommand),
2719 "restart_theme %s", params);
2720 doExit(restartcommand);
2724 - Esnprintf(buf, sizeof(buf), "Could not find theme: %s",
2725 + snprintf(buf, sizeof(buf), "Could not find theme: %s",
2729 @@ -4622,7 +4622,7 @@
2733 - Esnprintf(buf, sizeof(buf), themepath);
2734 + snprintf(buf, sizeof(buf), themepath);
2738 @@ -4643,9 +4643,9 @@
2739 if (!strcmp(params, "?"))
2742 - Esnprintf(buf, sizeof(buf), "Autosave : on");
2743 + snprintf(buf, sizeof(buf), "Autosave : on");
2745 - Esnprintf(buf, sizeof(buf), "Autosave : off");
2746 + snprintf(buf, sizeof(buf), "Autosave : off");
2748 else if (!strcmp(params, "on"))
2750 @@ -4657,7 +4657,7 @@
2754 - Esnprintf(buf, sizeof(buf), "Unknown autosave state: %s", params);
2755 + snprintf(buf, sizeof(buf), "Unknown autosave state: %s", params);
2759 @@ -4683,7 +4683,7 @@
2761 numIPC = sizeof(IPCArray) / sizeof(IPCStruct);
2763 - Esnprintf(buf, sizeof(buf), _("Enlightenment IPC Commands Help"));
2764 + snprintf(buf, sizeof(buf), _("Enlightenment IPC Commands Help"));
2768 @@ -4771,7 +4771,7 @@
2769 char buf[FILEPATH_LEN_MAX];
2772 - Esnprintf(buf, sizeof(buf),
2773 + snprintf(buf, sizeof(buf),
2774 "Copyright (C) 2000-2003 Carsten Haitzler and Geoff Harrison,\n"
2775 "with various contributors (Isaac Richards, Sung-Hyun Nam, "
2776 "Kimball Thurston,\n"
2777 @@ -4826,7 +4826,7 @@
2781 - Esnprintf(buf, sizeof(buf),
2782 + snprintf(buf, sizeof(buf),
2783 _("Enlightenment Version : %s\n" "code is current to : %s\n"),
2784 ENLIGHTENMENT_VERSION, E_CHECKOUT_DATE);
2786 @@ -4965,7 +4965,7 @@
2790 - Esnprintf(buf, sizeof(buf), "Error: no such group: %d", index);
2791 + snprintf(buf, sizeof(buf), "Error: no such group: %d", index);
2795 @@ -4973,7 +4973,7 @@
2799 - Esnprintf(buf, sizeof(buf), "Error: no memory");
2800 + snprintf(buf, sizeof(buf), "Error: no memory");
2804 @@ -4984,20 +4984,20 @@
2806 groups = (Group **) ListItemType(&num_groups, LIST_TYPE_GROUP);
2808 - Esnprintf(buf, sizeof(buf), "Number of groups: %d", num_groups);
2809 + snprintf(buf, sizeof(buf), "Number of groups: %d", num_groups);
2812 for (i = 0; i < num_groups; i++)
2814 for (j = 0; j < groups[i]->num_members; j++)
2816 - Esnprintf(tmp, sizeof(tmp), "%d", groups[i]->index);
2817 + snprintf(tmp, sizeof(tmp), "%d", groups[i]->index);
2820 strcat(buf, groups[i]->members[j]->client.title);
2823 - Esnprintf(buf2, sizeof(buf2),
2824 + snprintf(buf2, sizeof(buf2),
2825 " index: %d\n" " num_members: %d\n"
2826 " iconify: %d\n" " kill: %d\n"
2827 " move: %d\n" " raise: %d\n"
2828 @@ -5043,7 +5043,7 @@
2832 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
2833 + snprintf(buf, sizeof(buf), "Error: no operation specified");
2837 @@ -5052,7 +5052,7 @@
2838 ewin = FindEwinByChildren(win);
2841 - Esnprintf(buf, sizeof(buf), "Error: no such window: %8x",
2842 + snprintf(buf, sizeof(buf), "Error: no such window: %8x",
2846 @@ -5060,7 +5060,7 @@
2847 if (!strcmp(operation, "start"))
2849 BuildWindowGroup(&ewin, 1);
2850 - Esnprintf(buf, sizeof(buf), "start %8x", win);
2851 + snprintf(buf, sizeof(buf), "start %8x", win);
2853 else if (!strcmp(operation, "add"))
2855 @@ -5075,7 +5075,7 @@
2858 AddEwinToGroup(ewin, group);
2859 - Esnprintf(buf, sizeof(buf), "add %8x", win);
2860 + snprintf(buf, sizeof(buf), "add %8x", win);
2862 else if (!strcmp(operation, "remove"))
2864 @@ -5090,7 +5090,7 @@
2867 RemoveEwinFromGroup(ewin, group);
2868 - Esnprintf(buf, sizeof(buf), "remove %8x", win);
2869 + snprintf(buf, sizeof(buf), "remove %8x", win);
2871 else if (!strcmp(operation, "break"))
2873 @@ -5105,16 +5105,16 @@
2876 BreakWindowGroup(ewin, group);
2877 - Esnprintf(buf, sizeof(buf), "break %8x", win);
2878 + snprintf(buf, sizeof(buf), "break %8x", win);
2880 else if (!strcmp(operation, "showhide"))
2882 doShowHideGroup(windowid);
2883 - Esnprintf(buf, sizeof(buf), "showhide %8x", win);
2884 + snprintf(buf, sizeof(buf), "showhide %8x", win);
2888 - Esnprintf(buf, sizeof(buf),
2889 + snprintf(buf, sizeof(buf),
2890 "Error: no such operation: %s", operation);
2893 @@ -5123,7 +5123,7 @@
2897 - Esnprintf(buf, sizeof(buf), "Error: no window specified");
2898 + snprintf(buf, sizeof(buf), "Error: no window specified");
2902 @@ -5153,7 +5153,7 @@
2906 - Esnprintf(buf, sizeof(buf), "Error: no operation specified");
2907 + snprintf(buf, sizeof(buf), "Error: no operation specified");
2911 @@ -5164,7 +5164,7 @@
2915 - Esnprintf(buf, sizeof(buf), "Error: no such group: %d",
2916 + snprintf(buf, sizeof(buf), "Error: no such group: %d",
2920 @@ -5179,12 +5179,12 @@
2922 if (onoff == -1 && strcmp(param1, "?"))
2924 - Esnprintf(buf, sizeof(buf),
2925 + snprintf(buf, sizeof(buf),
2926 "Error: unknown mode specified");
2928 else if (!strcmp(operation, "num_members"))
2930 - Esnprintf(buf, sizeof(buf), "num_members: %d",
2931 + snprintf(buf, sizeof(buf), "num_members: %d",
2932 group->num_members);
2935 @@ -5246,7 +5246,7 @@
2939 - Esnprintf(buf, sizeof(buf),
2940 + snprintf(buf, sizeof(buf),
2941 "Error: no such operation: %s",
2944 @@ -5254,19 +5254,19 @@
2948 - Esnprintf(buf, sizeof(buf), "Error: no mode specified");
2949 + snprintf(buf, sizeof(buf), "Error: no mode specified");
2954 - Esnprintf(buf, sizeof(buf), "%s: on", operation);
2955 + snprintf(buf, sizeof(buf), "%s: on", operation);
2956 else if (onoff == 0)
2957 - Esnprintf(buf, sizeof(buf), "%s: off", operation);
2958 + snprintf(buf, sizeof(buf), "%s: off", operation);
2963 - Esnprintf(buf, sizeof(buf), "Error: no group specified");
2964 + snprintf(buf, sizeof(buf), "Error: no group specified");
2968 @@ -5309,7 +5309,7 @@
2969 lst = (Snapshot **) ListItemType(&num, LIST_TYPE_SNAPSHOT);
2972 - Esnprintf(buf, sizeof(buf), "Error: no remembered windows\n");
2973 + snprintf(buf, sizeof(buf), "Error: no remembered windows\n");
2977 @@ -5320,7 +5320,7 @@
2978 if (!lst[i] || (lst[i] && !lst[i]->used))
2981 - Esnprintf(buf, sizeof(buf), "Number of remembered windows: %d\n",
2982 + snprintf(buf, sizeof(buf), "Number of remembered windows: %d\n",
2985 /* strncat(buf, buf2, sizeof(buf)); */
2986 @@ -5330,12 +5330,12 @@
2990 - Esnprintf(buf2, sizeof(buf2), "%s\n",
2991 + snprintf(buf2, sizeof(buf2), "%s\n",
2992 lst[i]->name ? lst[i]->name : nstr);
2996 - Esnprintf(buf2, sizeof(buf2),
2997 + snprintf(buf2, sizeof(buf2),
2999 " Window Title: %s\n"
3000 " Window Name: %s\n"
3001 diff -ur enlightenment-0.16.6.orig/src/kde.c enlightenment-0.16.6/src/kde.c
3002 --- enlightenment-0.16.6.orig/src/kde.c Wed Nov 5 18:58:51 2003
3003 +++ enlightenment-0.16.6/src/kde.c Wed Nov 12 17:23:52 2003
3004 @@ -1081,12 +1081,12 @@
3006 if (!KDE_DESKTOP_NAME[i])
3008 - Esnprintf(s, sizeof(s), "KWM_DESKTOP_NAME_%d", i + 1);
3009 + snprintf(s, sizeof(s), "KWM_DESKTOP_NAME_%d", i + 1);
3010 KDE_DESKTOP_NAME[i] = XInternAtom(disp, s, False);
3012 if (!getSimpleHint(root.win, KDE_DESKTOP_NAME[i]))
3014 - Esnprintf(s, sizeof(s), "Desk %d", i);
3015 + snprintf(s, sizeof(s), "Desk %d", i);
3016 XChangeProperty(disp, root.win, KDE_DESKTOP_NAME[i], XA_STRING, 8,
3017 PropModeReplace, (unsigned char *)s,
3019 @@ -1122,7 +1122,7 @@
3021 if (!KDE_DESKTOP_WINDOW_REGION[i])
3023 - Esnprintf(s, sizeof(s), "KWM_WINDOW_REGION_%d", i + 1);
3024 + snprintf(s, sizeof(s), "KWM_WINDOW_REGION_%d", i + 1);
3025 KDE_DESKTOP_WINDOW_REGION[i] = XInternAtom(disp, s, False);
3027 if (a == KDE_DESKTOP_WINDOW_REGION[i])
3028 @@ -1149,7 +1149,7 @@
3032 - /* Esnprintf(s, sizeof(s), "region %d changed to area:\n"
3033 + /* snprintf(s, sizeof(s), "region %d changed to area:\n"
3034 * "X %d to %d\nY to %d to %d\n", i + 1, data[0], data[2],
3035 * data[1], data[3]);
3036 * DIALOG_OK("kde hint",s); */
3037 diff -ur enlightenment-0.16.6.orig/src/main.c enlightenment-0.16.6/src/main.c
3038 --- enlightenment-0.16.6.orig/src/main.c Wed Nov 5 18:58:51 2003
3039 +++ enlightenment-0.16.6/src/main.c Wed Nov 12 17:23:52 2003
3044 - Esnprintf(file, sizeof(file), "exec %s/dox %s/E-docs", ENLIGHTENMENT_BIN,
3045 + snprintf(file, sizeof(file), "exec %s/dox %s/E-docs", ENLIGHTENMENT_BIN,
3046 ENLIGHTENMENT_ROOT);
3047 execl(usershell(getuid()), usershell(getuid()), "-c", (char *)file, NULL);
3051 if ((!strcmp("-theme", argv[j])) && (argc - j > 1))
3053 - Esnprintf(themepath, sizeof(themepath), "%s", argv[++j]);
3054 + snprintf(themepath, sizeof(themepath), "%s", argv[++j]);
3056 else if ((!strcmp("-econfdir", argv[j])) && (argc - j > 1))
3062 - Esnprintf(themepath, sizeof(themepath), "%s", s);
3063 + snprintf(themepath, sizeof(themepath), "%s", s);
3068 def = GetDefaultTheme();
3071 - Esnprintf(themepath, sizeof(themepath), "%s", def);
3072 + snprintf(themepath, sizeof(themepath), "%s", def);
3076 diff -ur enlightenment-0.16.6.orig/src/menus.c enlightenment-0.16.6/src/menus.c
3077 --- enlightenment-0.16.6.orig/src/menus.c Wed Nov 5 18:58:51 2003
3078 +++ enlightenment-0.16.6/src/menus.c Wed Nov 12 17:23:52 2003
3081 EDestroyWindow(disp, m->win);
3083 - Esnprintf(s, sizeof(s), "__.%s", m->name);
3084 + snprintf(s, sizeof(s), "__.%s", m->name);
3085 RemoveTimerEvent(s);
3086 RemoveItem((char *)m, m->win, LIST_FINDBY_POINTER, LIST_TYPE_MENU);
3088 @@ -1060,7 +1060,7 @@
3092 - Esnprintf(cs, sizeof(cs),
3093 + snprintf(cs, sizeof(cs),
3094 "%s/cached/img/.%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
3095 UserCacheDir(), chmap[(aa >> 0) & 0x3f],
3096 chmap[(aa >> 6) & 0x3f], chmap[(aa >> 12) & 0x3f],
3097 @@ -1098,7 +1098,7 @@
3101 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, s2);
3102 + snprintf(ss, sizeof(ss), "%s/%s", dir, s2);
3103 im = Imlib_load_image(pImlibData, ss);
3106 @@ -1112,7 +1112,7 @@
3107 int maxw = 48, maxh = 48;
3108 int justx = 512, justy = 512;
3110 - Esnprintf(s2, sizeof(s2), "%s/cached/img/%s",
3111 + snprintf(s2, sizeof(s2), "%s/cached/img/%s",
3112 UserCacheDir(), s3);
3113 width = im->rgb_width;
3114 height = im->rgb_height;
3115 @@ -1200,7 +1200,7 @@
3116 ic = CreateIclass();
3117 ic->name = duplicate("`");
3118 ic->norm.normal = CreateImageState();
3119 - Esnprintf(stmp, sizeof(stmp), "%s/cached/img/%s",
3120 + snprintf(stmp, sizeof(stmp), "%s/cached/img/%s",
3121 UserCacheDir(), s3);
3122 ic->norm.normal->im_file = duplicate(stmp);
3123 ic->norm.normal->unloadable = 1;
3124 @@ -1214,7 +1214,7 @@
3125 else if (!strcmp(ss, "EXE"))
3128 - Esnprintf(s, sizeof(s), "%s/%s", dir, ss);
3129 + snprintf(s, sizeof(s), "%s/%s", dir, ss);
3130 mi = CreateMenuItem(NULL, NULL, ACTION_EXEC, s, NULL);
3131 AddItemToMenu(m, mi);
3133 @@ -1223,8 +1223,8 @@
3137 - Esnprintf(s, sizeof(s), "%s/%s:%s", dir, tmp, name);
3138 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, tmp);
3139 + snprintf(s, sizeof(s), "%s/%s:%s", dir, tmp, name);
3140 + snprintf(ss, sizeof(ss), "%s/%s", dir, tmp);
3141 mm = CreateMenuFromDirectory(s, ms, ss);
3143 AddItem(mm, mm->name, mm->win, LIST_TYPE_MENU);
3144 @@ -1237,7 +1237,7 @@
3147 list = ls(dir, &num);
3148 - Esnprintf(s, sizeof(s), "Scanning %s", dir);
3149 + snprintf(s, sizeof(s), "Scanning %s", dir);
3151 p = CreateProgressbar(s, 600, 16);
3153 @@ -1247,15 +1247,15 @@
3156 SetProgressbar(p, (i * 100) / num);
3157 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3158 + snprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3159 /* skip "dot" files and dirs - senisble */
3160 if ((*(list[i]) != '.') && (stat(ss, &st) >= 0))
3162 ext = FileExtension(ss);
3163 if (S_ISDIR(st.st_mode))
3165 - Esnprintf(s, sizeof(s), "%s/%s:%s", dir, list[i], name);
3166 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3167 + snprintf(s, sizeof(s), "%s/%s:%s", dir, list[i], name);
3168 + snprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3169 mm = CreateMenuFromDirectory(s, ms, ss);
3171 AddItem(mm, mm->name, mm->win, LIST_TYPE_MENU);
3172 @@ -1308,7 +1308,7 @@
3176 - Esnprintf(s3, sizeof(s3),
3177 + snprintf(s3, sizeof(s3),
3178 ".%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
3179 chmap[(aa >> 0) & 0x3f], chmap[(aa >> 6) & 0x3f],
3180 chmap[(aa >> 12) & 0x3f], chmap[(aa >> 18) & 0x3f],
3181 @@ -1336,7 +1336,7 @@
3182 int scr_asp, im_asp, w2, h2;
3183 int maxw = 48, maxh = 48;
3185 - Esnprintf(s2, sizeof(s2), "%s/cached/img/%s",
3186 + snprintf(s2, sizeof(s2), "%s/cached/img/%s",
3187 UserCacheDir(), s3);
3188 width = im->rgb_width;
3189 height = im->rgb_height;
3190 @@ -1411,7 +1411,7 @@
3191 ic = CreateIclass();
3192 ic->name = duplicate("`");
3193 ic->norm.normal = CreateImageState();
3194 - Esnprintf(stmp, sizeof(stmp), "%s/cached/img/%s",
3195 + snprintf(stmp, sizeof(stmp), "%s/cached/img/%s",
3196 UserCacheDir(), s3);
3197 ic->norm.normal->im_file = duplicate(stmp);
3198 ic->norm.normal->unloadable = 1;
3199 @@ -1464,7 +1464,7 @@
3200 FillFlatFileMenu(m, m->style, m->name, ff, m);
3202 m->ref_menu = parent;
3203 - Esnprintf(s, sizeof(s), "__.%s", m->name);
3204 + snprintf(s, sizeof(s), "__.%s", m->name);
3205 DoIn(s, 2.0, FileMenuUpdate, 0, m);
3208 @@ -1528,7 +1528,7 @@
3212 - Esnprintf(wd, sizeof(wd), "__FM.%s", icon);
3213 + snprintf(wd, sizeof(wd), "__FM.%s", icon);
3215 FindItem(wd, 0, LIST_FINDBY_NAME, LIST_TYPE_ICLASS);
3217 @@ -1560,7 +1560,7 @@
3219 else if ((act) && (!strcmp(act, "menu")) && (params))
3221 - Esnprintf(wd, sizeof(wd), "__FM.%s.%i", name, count);
3222 + snprintf(wd, sizeof(wd), "__FM.%s.%i", name, count);
3224 mm = CreateMenuFromFlatFile(wd, ms, params, parent);
3226 @@ -1603,7 +1603,7 @@
3227 /* if the menu is up dont update */
3228 if (((mode.cur_menu_mode) || (clickmenu)) && (mode.cur_menu_depth > 0))
3230 - Esnprintf(s, sizeof(s), "__.%s", m->name);
3231 + snprintf(s, sizeof(s), "__.%s", m->name);
3232 DoIn(s, 2.0, FileMenuUpdate, 0, m);
3235 @@ -1623,7 +1623,7 @@
3236 m->last_change = lastmod;
3239 - Esnprintf(s, sizeof(s), "__.%s", m->name);
3240 + snprintf(s, sizeof(s), "__.%s", m->name);
3241 DoIn(s, 2.0, FileMenuUpdate, 0, m);
3244 @@ -1631,7 +1631,7 @@
3248 - Esnprintf(s, sizeof(s), "__.%s", m->name);
3249 + snprintf(s, sizeof(s), "__.%s", m->name);
3250 DoIn(s, 2.0, FileMenuUpdate, 0, m);
3253 @@ -1650,7 +1650,7 @@
3254 EDBUG(5, "CreateMenuFromGnome");
3256 if ((lang = setlocale(LC_MESSAGES, NULL)) != NULL)
3257 - Esnprintf(name_buf, sizeof(name_buf), "Name[%s]=", lang);
3258 + snprintf(name_buf, sizeof(name_buf), "Name[%s]=", lang);
3262 @@ -1662,17 +1662,17 @@
3264 if ((strcmp(list[i], ".")) && (strcmp(list[i], "..")))
3266 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3267 + snprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
3270 - Esnprintf(s, sizeof(s), "%s/%s:%s", dir, list[i], name);
3271 + snprintf(s, sizeof(s), "%s/%s:%s", dir, list[i], name);
3272 mm = CreateMenuFromGnome(s, ms, ss);
3274 AddItem(mm, mm->name, mm->win, LIST_TYPE_MENU);
3278 - Esnprintf(s, sizeof(s), "%s/.directory", ss);
3279 + snprintf(s, sizeof(s), "%s/.directory", ss);
3280 if ((f = fopen(s, "r")) != NULL)
3282 while (fgets(s, sizeof(s), f))
3283 @@ -1781,7 +1781,7 @@
3284 for (i = 0; i < num; i++)
3286 s = fullfileof(lst[i]);
3287 - Esnprintf(ss, sizeof(ss), "restart_theme %s", s);
3288 + snprintf(ss, sizeof(ss), "restart_theme %s", s);
3291 mi = CreateMenuItem(s, NULL, ACTION_EXIT, ss, NULL);
3292 @@ -1858,7 +1858,7 @@
3293 if ((!lst[i]->menu) && (!lst[i]->pager) && (!lst[i]->skipwinlist)
3294 && (lst[i]->client.title) && (!lst[i]->ibox))
3296 - Esnprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3297 + snprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3298 mi = CreateMenuItem(lst[i]->client.title, NULL,
3299 ACTION_FOCUS_SET, s, NULL);
3300 AddItemToMenu(m, mi);
3301 @@ -1894,7 +1894,7 @@
3302 && (!lst[i]->skipwinlist) && (lst[i]->client.title)
3305 - Esnprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3306 + snprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3307 mi = CreateMenuItem(lst[i]->client.title, NULL,
3308 ACTION_FOCUS_SET, s, NULL);
3309 AddItemToMenu(m, mi);
3310 @@ -1926,7 +1926,7 @@
3312 mm->name = duplicate("__SUBMENUDESK_E");
3314 - Esnprintf(s, sizeof(s), "%i", j);
3315 + snprintf(s, sizeof(s), "%i", j);
3316 mi = CreateMenuItem(_("Go to this Desktop"), NULL, ACTION_GOTO_DESK, s,
3318 AddItemToMenu(mm, mi);
3319 @@ -1936,14 +1936,14 @@
3320 && (!lst[i]->pager) && (!lst[i]->skipwinlist)
3321 && (lst[i]->client.title) && (!lst[i]->ibox))
3323 - Esnprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3324 + snprintf(s, sizeof(s), "%i", (int)(lst[i]->client.win));
3325 mi = CreateMenuItem(lst[i]->client.title, NULL,
3326 ACTION_FOCUS_SET, s, NULL);
3327 AddItemToMenu(mm, mi);
3331 - Esnprintf(s, sizeof(s), _("Desktop %i"), j);
3332 + snprintf(s, sizeof(s), _("Desktop %i"), j);
3333 mi = CreateMenuItem(s, NULL, 0, NULL, mm);
3334 AddItemToMenu(m, mi);
3336 @@ -2009,7 +2009,7 @@
3338 mm->name = duplicate("__SUBMENUGROUP_E");
3340 - Esnprintf(s, sizeof(s), "%i", lst[i]->members[0]->client.win);
3341 + snprintf(s, sizeof(s), "%i", lst[i]->members[0]->client.win);
3342 mi = CreateMenuItem(_("Show/Hide this group"), NULL,
3343 ACTION_SHOW_HIDE_GROUP, s, NULL);
3344 AddItemToMenu(mm, mi);
3345 @@ -2019,13 +2019,13 @@
3347 for (j = 0; j < lst[i]->num_members; j++)
3349 - Esnprintf(s, sizeof(s), "%i", lst[i]->members[j]->client.win);
3350 + snprintf(s, sizeof(s), "%i", lst[i]->members[j]->client.win);
3351 mi = CreateMenuItem(lst[i]->members[j]->client.title, NULL,
3352 ACTION_FOCUS_SET, s, NULL);
3353 AddItemToMenu(mm, mi);
3356 - Esnprintf(s, sizeof(s), _("Group %i"), i);
3357 + snprintf(s, sizeof(s), _("Group %i"), i);
3358 mi = CreateMenuItem(s, NULL, 0, NULL, mm);
3359 AddItemToMenu(m, mi);
3361 diff -ur enlightenment-0.16.6.orig/src/misc.c enlightenment-0.16.6/src/misc.c
3362 --- enlightenment-0.16.6.orig/src/misc.c Wed Nov 5 18:58:51 2003
3363 +++ enlightenment-0.16.6/src/misc.c Wed Nov 12 17:23:52 2003
3365 for (i = 0; i < 3; i++)
3368 - Esnprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_BIN, bins[i]);
3369 + snprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_BIN, bins[i]);
3371 - Esnprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_BIN),
3372 + snprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_BIN),
3377 "correctly.\n"), s);
3380 - Esnprintf(s, sizeof(s), "%s/dox", ENLIGHTENMENT_BIN);
3381 + snprintf(s, sizeof(s), "%s/dox", ENLIGHTENMENT_BIN);
3383 for (i = 0; i < 3; i++)
3386 - Esnprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_ROOT, docs[i]);
3387 + snprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_ROOT, docs[i]);
3389 - Esnprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
3390 + snprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
3395 for (i = 0; i < 1; i++)
3398 - Esnprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_ROOT, thms[i]);
3399 + snprintf(s, sizeof(s), "%s/%s", ENLIGHTENMENT_ROOT, thms[i]);
3401 - Esnprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
3402 + snprintf(s, sizeof(s), "%s/%s", __XOS2RedirRoot(ENLIGHTENMENT_ROOT),
3407 char *home, buf[4096];
3409 home = homedir(getuid());
3410 - Esnprintf(buf, sizeof(buf), "%s/.enlightenment", home);
3411 + snprintf(buf, sizeof(buf), "%s/.enlightenment", home);
3413 dir = duplicate(buf);
3416 char sss[FILEPATH_LEN_MAX];
3419 - Esnprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
3420 + snprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
3422 - Esnprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
3423 + snprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
3427 @@ -420,93 +420,93 @@
3431 - Esnprintf(s, sizeof(s), "%s/%s", dir, "borders.cfg");
3432 + snprintf(s, sizeof(s), "%s/%s", dir, "borders.cfg");
3435 badreason = _("Theme does not contain a borders.cfg file\n");
3438 - Esnprintf(s, sizeof(s), "%s/%s", dir, "buttons.cfg");
3439 + snprintf(s, sizeof(s), "%s/%s", dir, "buttons.cfg");
3442 badreason = _("Theme does not contain a buttons.cfg file\n");
3445 - Esnprintf(s, sizeof(s), "%s/%s", dir, "colormodifiers.cfg");
3446 + snprintf(s, sizeof(s), "%s/%s", dir, "colormodifiers.cfg");
3449 badreason = _("Theme does not contain a colormodifiers.cfg file\n");
3452 - Esnprintf(s, sizeof(s), "%s/%s", dir, "cursors.cfg");
3453 + snprintf(s, sizeof(s), "%s/%s", dir, "cursors.cfg");
3456 badreason = _("Theme does not contain a cursors.cfg file\n");
3459 - Esnprintf(s, sizeof(s), "%s/%s", dir, "desktops.cfg");
3460 + snprintf(s, sizeof(s), "%s/%s", dir, "desktops.cfg");
3463 badreason = _("Theme does not contain a desktops.cfg file\n");
3466 - Esnprintf(s, sizeof(s), "%s/%s", dir, "imageclasses.cfg");
3467 + snprintf(s, sizeof(s), "%s/%s", dir, "imageclasses.cfg");
3470 badreason = _("Theme does not contain a imageclasses.cfg file\n");
3473 - Esnprintf(s, sizeof(s), "%s/%s", dir, "init.cfg");
3474 + snprintf(s, sizeof(s), "%s/%s", dir, "init.cfg");
3477 badreason = _("Theme does not contain a init.cfg file\n");
3480 - Esnprintf(s, sizeof(s), "%s/%s", dir, "menustyles.cfg");
3481 + snprintf(s, sizeof(s), "%s/%s", dir, "menustyles.cfg");
3484 badreason = _("Theme does not contain a menustyles.cfg file\n");
3487 - Esnprintf(s, sizeof(s), "%s/%s", dir, "slideouts.cfg");
3488 + snprintf(s, sizeof(s), "%s/%s", dir, "slideouts.cfg");
3491 badreason = _("Theme does not contain a slideouts.cfg file\n");
3494 #ifndef __EMX__ /* OS/2 Team will compile ESound after XMMS project */
3495 - Esnprintf(s, sizeof(s), "%s/%s", dir, "sound.cfg");
3496 + snprintf(s, sizeof(s), "%s/%s", dir, "sound.cfg");
3499 badreason = _("Theme does not contain a sound.cfg file\n");
3503 - Esnprintf(s, sizeof(s), "%s/%s", dir, "tooltips.cfg");
3504 + snprintf(s, sizeof(s), "%s/%s", dir, "tooltips.cfg");
3507 badreason = _("Theme does not contain a tooltips.cfg file\n");
3510 - Esnprintf(s, sizeof(s), "%s/%s", dir, "windowmatches.cfg");
3511 + snprintf(s, sizeof(s), "%s/%s", dir, "windowmatches.cfg");
3514 badreason = _("Theme does not contain a windowmatches.cfg file\n");
3517 - Esnprintf(s, sizeof(s), "%s/%s", dir, "menus.cfg");
3518 + snprintf(s, sizeof(s), "%s/%s", dir, "menus.cfg");
3521 badreason = _("Theme contains a menus.cfg file\n");
3524 - Esnprintf(s, sizeof(s), "%s/%s", dir, "control.cfg");
3525 + snprintf(s, sizeof(s), "%s/%s", dir, "control.cfg");
3528 badreason = _("Theme contains a control.cfg file\n");
3531 - Esnprintf(s, sizeof(s), "%s/%s", dir, "keybindings.cfg");
3532 + snprintf(s, sizeof(s), "%s/%s", dir, "keybindings.cfg");
3535 badreason = _("Theme contains a keybindings.cfg file\n");
3536 diff -ur enlightenment-0.16.6.orig/src/modules.c enlightenment-0.16.6/src/modules.c
3537 --- enlightenment-0.16.6.orig/src/modules.c Wed Nov 5 18:58:51 2003
3538 +++ enlightenment-0.16.6/src/modules.c Wed Nov 12 17:23:52 2003
3541 char pathoffiletoload[FILEPATH_LEN_MAX];
3543 - Esnprintf(pathoffiletoload, sizeof(pathoffiletoload), "%s/%s",
3544 + snprintf(pathoffiletoload, sizeof(pathoffiletoload), "%s/%s",
3545 FindModulePath(module_name), module_name);
3546 handle = dlopen(pathoffiletoload, RTLD_LAZY);
3548 diff -ur enlightenment-0.16.6.orig/src/pager.c enlightenment-0.16.6/src/pager.c
3549 --- enlightenment-0.16.6.orig/src/pager.c Wed Nov 5 18:58:51 2003
3550 +++ enlightenment-0.16.6/src/pager.c Wed Nov 12 17:23:52 2003
3552 static int offsets[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
3555 - Esnprintf(s, sizeof(s), "__.%x", p->win);
3556 + snprintf(s, sizeof(s), "__.%x", p->win);
3557 /* prevent runaway pager timeouts - dont knwo how it happens - but hack */
3558 /* around to stop it */
3559 cur_time = GetTime();
3564 - Esnprintf(s, sizeof(s), "%i", p->desktop);
3565 + snprintf(s, sizeof(s), "%i", p->desktop);
3566 xch = XAllocClassHint();
3568 xch->res_class = "Enlightenment_Pager";
3570 RememberImportantInfoForEwin(ewin);
3573 - Esnprintf(s, sizeof(s), "__.%x", p->win);
3574 + snprintf(s, sizeof(s), "__.%x", p->win);
3575 if (mode.pager_scanspeed > 0)
3576 DoIn(s, 1 / ((double)mode.pager_scanspeed), PagerUpdateTimeout,
3581 RemoveItem("PAGER", p->win, LIST_FINDBY_ID, LIST_TYPE_PAGER);
3582 - Esnprintf(s, sizeof(s), "__.%x", p->win);
3583 + snprintf(s, sizeof(s), "__.%x", p->win);
3584 RemoveTimerEvent(s);
3587 @@ -1010,7 +1010,7 @@
3590 uniq = GetUniqueBGString(desks.desk[p->desktop].bg);
3591 - Esnprintf(s, sizeof(s), "%s/cached/pager/%s.%i.%i.%s",
3592 + snprintf(s, sizeof(s), "%s/cached/pager/%s.%i.%i.%s",
3594 desks.desk[p->desktop].bg->name, (p->w / ax),
3596 @@ -1276,7 +1276,7 @@
3598 FindItem("DEFAULT", 0, LIST_FINDBY_NAME, LIST_TYPE_MENU_STYLE);
3600 - Esnprintf(s, sizeof(s), "%i", ewin->client.win);
3601 + snprintf(s, sizeof(s), "%i", ewin->client.win);
3602 mi = CreateMenuItem(_("Iconify"), NULL, ACTION_ICONIFY, s, NULL);
3603 AddItemToMenu(pw_menu, mi);
3605 @@ -1290,7 +1290,7 @@
3606 AddItemToMenu(pw_menu, mi);
3608 AddItem(pw_menu, pw_menu->name, 0, LIST_TYPE_MENU);
3609 - Esnprintf(s, sizeof(s), "named %s", pw_menu->name);
3610 + snprintf(s, sizeof(s), "named %s", pw_menu->name);
3614 @@ -1326,7 +1326,7 @@
3615 AddItemToMenu(p_menu, mi);
3617 AddItem(p_menu, p_menu->name, 0, LIST_TYPE_MENU);
3618 - Esnprintf(s, sizeof(s), "named %s", p_menu->name);
3619 + snprintf(s, sizeof(s), "named %s", p_menu->name);
3623 @@ -1718,7 +1718,7 @@
3627 - Esnprintf(s, sizeof(s), "%i", desk);
3628 + snprintf(s, sizeof(s), "%i", desk);
3632 @@ -1739,7 +1739,7 @@
3636 - Esnprintf(s, sizeof(s), "%i", desk);
3637 + snprintf(s, sizeof(s), "%i", desk);
3641 @@ -1870,7 +1870,7 @@
3642 PagerForceUpdate(pl[i]);
3645 - Esnprintf(s, sizeof(s), "__.%x", pl[i]->win);
3646 + snprintf(s, sizeof(s), "__.%x", pl[i]->win);
3647 if (mode.pager_scanspeed > 0)
3648 DoIn(s, 1 / ((double)mode.pager_scanspeed),
3649 PagerUpdateTimeout, 0, pl[i]);
3650 diff -ur enlightenment-0.16.6.orig/src/progress.c enlightenment-0.16.6/src/progress.c
3651 --- enlightenment-0.16.6.orig/src/progress.c Wed Nov 5 18:58:51 2003
3652 +++ enlightenment-0.16.6/src/progress.c Wed Nov 12 17:23:52 2003
3657 - Esnprintf(s, sizeof(s), "%i%%", p->value);
3658 + snprintf(s, sizeof(s), "%i%%", p->value);
3661 TclassApply(p->inc, p->n_win, p->h * 5, p->h, 0, 0, STATE_CLICKED, 0,
3662 diff -ur enlightenment-0.16.6.orig/src/session.c enlightenment-0.16.6/src/session.c
3663 --- enlightenment-0.16.6.orig/src/session.c Wed Nov 5 18:58:51 2003
3664 +++ enlightenment-0.16.6/src/session.c Wed Nov 12 17:23:52 2003
3669 - Esnprintf(s, sizeof(s), "%s/...e_session-XXXXXX", UserEDir());
3670 + snprintf(s, sizeof(s), "%s/...e_session-XXXXXX", UserEDir());
3671 def_prefix = duplicate(s);
3678 - Esnprintf(ss, sizeof(ss), "%s.clients.%i", GetSMFile(), root.scr);
3679 + snprintf(ss, sizeof(ss), "%s.clients.%i", GetSMFile(), root.scr);
3685 char s[4096], s1[4096];
3687 - Esnprintf(s, sizeof(s), "%s.clients.%i", GetSMFile(), root.scr);
3688 + snprintf(s, sizeof(s), "%s.clients.%i", GetSMFile(), root.scr);
3696 - * Esnprintf(buf, sizeof(buf) / sizeof(char), "rm %s*", GetSMFile());
3697 + * snprintf(buf, sizeof(buf) / sizeof(char), "rm %s*", GetSMFile());
3700 rm(GetGenericSMFile());
3705 - Esnprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
3706 + snprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
3708 - Esnprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
3709 + snprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
3715 if (themepath[0] != 0)
3717 - Esnprintf(sss, sizeof(sss),
3718 + snprintf(sss, sizeof(sss),
3719 "exec %s -single -ext_init_win %i -theme %s "
3720 "-econfdir %s -ecachedir %s -display %s", command,
3721 w, themename, UserEDir(), UserCacheDir(), dstr);
3726 - Esnprintf(sss, sizeof(sss),
3727 + snprintf(sss, sizeof(sss),
3728 "exec %s -single -ext_init_win %i "
3729 "-econfdir %s -ecachedir %s -display %s", command,
3730 w, UserEDir(), UserCacheDir(), dstr);
3732 XCloseDisplay(disp);
3734 sscanf(params, "%*s %1000s", s);
3735 - Esnprintf(sss, sizeof(sss),
3736 + snprintf(sss, sizeof(sss),
3737 "exec %s -single -ext_init_win %i -theme %s "
3738 "-econfdir %s -ecachedir %s -display %s", command, w, s,
3739 UserEDir(), UserCacheDir(), dstr);
3742 #if USE_DISCARD_PROPERTY
3743 /* Tell session manager how to clean up our old data */
3744 - Esnprintf(buf, sizeof(buf) / sizeof(char), "rm %s*.clients.*", sm_file);
3745 + snprintf(buf, sizeof(buf) / sizeof(char), "rm %s*.clients.*", sm_file);
3747 discardVal[0].length = strlen(sh);
3748 discardVal[0].value = sh;
3753 - Esnprintf(buf, sizeof(buf) / sizeof(char), "%i", init_win_ext);
3754 + snprintf(buf, sizeof(buf) / sizeof(char), "%i", init_win_ext);
3756 restartVal[n].length = strlen(extinitwin);
3757 restartVal[n++].value = extinitwin;
3762 - Esnprintf(s, sizeof(s), "sm_file %s", default_save_prefix());
3763 + snprintf(s, sizeof(s), "sm_file %s", default_save_prefix());
3764 /* fd = Emkstemp(s + 8);
3767 @@ -1196,7 +1196,7 @@
3769 XCloseDisplay(disp);
3771 - Esnprintf(s, sizeof(s), "exec %s -display %s", atword(params, 2), dstr);
3772 + snprintf(s, sizeof(s), "exec %s -display %s", atword(params, 2), dstr);
3773 execl(DEFAULT_SH_PATH, DEFAULT_SH_PATH, "-c", s, NULL);
3775 else if (!strcmp(s, "restart"))
3776 @@ -1213,14 +1213,14 @@
3777 if (themepath[0] != 0)
3780 - Esnprintf(s, sizeof(s),
3781 + snprintf(s, sizeof(s),
3782 "exec %s -single -ext_init_win %i -theme %s "
3783 "-econfdir %s -ecachedir %s "
3784 "-smfile %s -smid %s -display %s", command,
3785 init_win_ext, themename, UserEDir(), UserCacheDir(),
3786 sm_file, sm_client_id, dstr);
3788 - Esnprintf(s, sizeof(s),
3789 + snprintf(s, sizeof(s),
3790 "exec %s -single -ext_init_win %i -theme %s "
3791 "-econfdir %s -ecachedir %s "
3792 "-smfile %s -display %s", command, init_win_ext,
3793 @@ -1230,14 +1230,14 @@
3797 - Esnprintf(s, sizeof(s),
3798 + snprintf(s, sizeof(s),
3799 "exec %s -single -ext_init_win %i "
3800 "-econfdir %s -ecachedir %s "
3801 "-smfile %s -smid %s -display %s", command,
3802 init_win_ext, UserEDir(), UserCacheDir(), sm_file,
3803 sm_client_id, dstr);
3805 - Esnprintf(s, sizeof(s),
3806 + snprintf(s, sizeof(s),
3807 "exec %s -single -ext_init_win %i"
3808 "-econfdir %s -ecachedir %s "
3809 "-smfile %s -display %s", command, init_win_ext,
3810 @@ -1260,14 +1260,14 @@
3814 - Esnprintf(s, sizeof(s),
3815 + snprintf(s, sizeof(s),
3816 "exec %s -single -ext_init_win %i -theme %s "
3817 "-econfdir %s -ecachedir %s "
3818 "-smfile %s -smid %s -display %s", command, init_win_ext,
3819 userthemepath, UserEDir(), UserCacheDir(), sm_file,
3820 sm_client_id, dstr);
3822 - Esnprintf(s, sizeof(s),
3823 + snprintf(s, sizeof(s),
3824 "exec %s -ext_init_win %i -theme %s "
3825 "-econfdir %s -ecachedir %s "
3826 "-smfile %s -single -display %s", command, init_win_ext,
3827 diff -ur enlightenment-0.16.6.orig/src/settings.c enlightenment-0.16.6/src/settings.c
3828 --- enlightenment-0.16.6.orig/src/settings.c Wed Nov 5 18:58:51 2003
3829 +++ enlightenment-0.16.6/src/settings.c Wed Nov 12 17:23:52 2003
3834 - Esnprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
3835 + snprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
3836 tmp_pager_scan_speed, _("lines per second"));
3837 DialogItemTextSetText(pager_scan_speed_label, s);
3838 DialogDrawItems(pager_settings_dialog, pager_scan_speed_label, 0, 0, 99999,
3840 DialogItemSetFill(di, 0, 0);
3841 DialogItemSetColSpan(di, 2);
3842 DialogItemSetAlign(di, 0, 512);
3843 - Esnprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
3844 + snprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
3845 tmp_pager_scan_speed, _("lines per second"));
3846 DialogItemTextSetText(di, s);
3848 @@ -1089,9 +1089,9 @@
3849 for (i = tmp_desktops; i < ENLIGHTENMENT_CONF_NUM_DESKTOPS; i++)
3850 EUnmapWindow(disp, wins[i]);
3851 if (tmp_desktops > 1)
3852 - Esnprintf(s, sizeof(s), _("%i Desktops"), tmp_desktops);
3853 + snprintf(s, sizeof(s), _("%i Desktops"), tmp_desktops);
3855 - Esnprintf(s, sizeof(s), _("%i Desktop"), tmp_desktops);
3856 + snprintf(s, sizeof(s), _("%i Desktop"), tmp_desktops);
3857 DialogItemTextSetText(tmp_desk_text, s);
3858 DialogDrawItems(tmp_desk_dialog, tmp_desk_text, 0, 0, 99999, 99999);
3860 @@ -1151,9 +1151,9 @@
3861 DialogItemSetFill(di, 1, 0);
3862 DialogItemSetColSpan(di, 2);
3863 if (tmp_desktops > 1)
3864 - Esnprintf(s, sizeof(s), _("%i Desktops"), tmp_desktops);
3865 + snprintf(s, sizeof(s), _("%i Desktops"), tmp_desktops);
3867 - Esnprintf(s, sizeof(s), _("%i Desktop"), tmp_desktops);
3868 + snprintf(s, sizeof(s), _("%i Desktop"), tmp_desktops);
3869 DialogItemTextSetText(di, s);
3871 di = slider = DialogAddItem(table, DITEM_SLIDER);
3872 @@ -1268,10 +1268,10 @@
3873 EMapWindow(disp, awin);
3875 if ((tmp_area_x > 1) || ((9 - tmp_area_y) > 1))
3876 - Esnprintf(s, sizeof(s), _("%i x %i\nScreens in size"), tmp_area_x,
3877 + snprintf(s, sizeof(s), _("%i x %i\nScreens in size"), tmp_area_x,
3880 - Esnprintf(s, sizeof(s), _("1\nScreen in size"));
3881 + snprintf(s, sizeof(s), _("1\nScreen in size"));
3882 DialogItemTextSetText(tmp_area_text, s);
3883 DialogDrawItems(tmp_area_dialog, tmp_area_text, 0, 0, 99999, 99999);
3885 @@ -1337,10 +1337,10 @@
3886 DialogItemSetPadding(di, 2, 2, 2, 2);
3887 DialogItemSetFill(di, 1, 0);
3888 if ((tmp_area_x > 1) || (tmp_area_y > 1))
3889 - Esnprintf(s, sizeof(s), _("%i x %i\nScreens in size"), tmp_area_x,
3890 + snprintf(s, sizeof(s), _("%i x %i\nScreens in size"), tmp_area_x,
3893 - Esnprintf(s, sizeof(s), _("1\nScreen in size"));
3894 + snprintf(s, sizeof(s), _("1\nScreen in size"));
3895 DialogItemTextSetText(di, s);
3897 table2 = DialogAddItem(table, DITEM_TABLE);
3898 @@ -2562,7 +2562,7 @@
3902 - Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s", UserCacheDir(),
3903 + snprintf(s, sizeof(s), "%s/cached/bgsel/%s", UserCacheDir(),
3905 p2 = ECreatePixmap(disp, root.win, 64, 48, root.depth);
3906 SetBackgroundTo(pImlibData, p2, tmp_bg, 0);
3907 @@ -2679,7 +2679,7 @@
3911 - Esnprintf(s, sizeof(s), "__NEWBG_%i\n", time(NULL));
3912 + snprintf(s, sizeof(s), "__NEWBG_%i\n", time(NULL));
3916 @@ -2751,7 +2751,7 @@
3917 stmp = fullfileof(tmp_bg->bg.file);
3919 stmp = duplicate(_("-NONE-"));
3920 - Esnprintf(s, sizeof(s),
3921 + snprintf(s, sizeof(s),
3923 ("Background definition information:\nName: %s\nFile: %s\n"),
3924 tmp_bg->name, stmp);
3925 @@ -2872,7 +2872,7 @@
3926 stmp = fullfileof(tmp_bg->bg.file);
3928 stmp = duplicate(_("-NONE-"));
3929 - Esnprintf(s, sizeof(s),
3930 + snprintf(s, sizeof(s),
3932 ("Background definition information:\nName: %s\nFile: %s\n"),
3933 tmp_bg->name, stmp);
3934 @@ -3012,12 +3012,12 @@
3938 - Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s",
3939 + snprintf(s, sizeof(s), "%s/cached/bgsel/%s",
3940 UserCacheDir(), bglist[i]->name);
3944 - Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s",
3945 + snprintf(s, sizeof(s), "%s/cached/bgsel/%s",
3946 UserCacheDir(), bglist[i]->name);
3948 ECreatePixmap(disp, pmap, 64, 48,
3949 @@ -3130,7 +3130,7 @@
3950 stmp = fullfileof(tmp_bg->bg.file);
3952 stmp = duplicate(_("-NONE-"));
3953 - Esnprintf(s, sizeof(s),
3954 + snprintf(s, sizeof(s),
3956 ("Background definition information:\nName: %s\nFile: %s\n"),
3957 tmp_bg->name, stmp);
3958 @@ -3193,7 +3193,7 @@
3961 di = (DItem *) data;
3962 - Esnprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
3963 + snprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
3964 tmp_bg_timeout / 3600,
3965 (tmp_bg_timeout / 60) - (60 * (tmp_bg_timeout / 3600)),
3966 (tmp_bg_timeout) - (60 * (tmp_bg_timeout / 60)));
3967 @@ -3253,7 +3253,7 @@
3968 stmp = fullfileof(tmp_bg->bg.file);
3970 stmp = duplicate(_("-NONE-"));
3971 - Esnprintf(s, sizeof(s),
3972 + snprintf(s, sizeof(s),
3974 ("Background definition information:\nName: %s\nFile: %s\n"),
3975 tmp_bg->name, stmp);
3976 @@ -3497,7 +3497,7 @@
3980 - Esnprintf(s, sizeof(s), "__NEWBG_%i\n", time(NULL));
3981 + snprintf(s, sizeof(s), "__NEWBG_%i\n", time(NULL));
3982 bg = CreateDesktopBG(s, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, 512, 512,
3984 AddItem(bg, bg->name, 0, LIST_TYPE_BACKGROUND);
3985 @@ -3765,7 +3765,7 @@
3986 DialogItemSetPadding(di, 2, 2, 2, 2);
3987 DialogItemSetFill(di, 1, 0);
3988 DialogItemSetAlign(di, 512, 512);
3989 - Esnprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
3990 + snprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
3991 tmp_bg_timeout / 3600,
3992 (tmp_bg_timeout / 60) - (60 * (tmp_bg_timeout / 3600)),
3993 (tmp_bg_timeout) - (60 * (tmp_bg_timeout / 60)));
3994 @@ -3875,7 +3875,7 @@
3995 stmp = fullfileof(tmp_bg->bg.file);
3997 stmp = duplicate(_("-NONE-"));
3998 - Esnprintf(s, sizeof(s),
3999 + snprintf(s, sizeof(s),
4000 _("Background definition information:\nName: %s\nFile: %s\n"),
4001 tmp_bg->name, stmp);
4003 diff -ur enlightenment-0.16.6.orig/src/setup.c enlightenment-0.16.6/src/setup.c
4004 --- enlightenment-0.16.6.orig/src/setup.c Wed Nov 5 18:58:51 2003
4005 +++ enlightenment-0.16.6/src/setup.c Wed Nov 12 17:23:52 2003
4007 if (NULL != dispstr)
4010 - Esnprintf(subdisplay + strlen(subdisplay), 10, ".%d", i);
4011 + snprintf(subdisplay + strlen(subdisplay), 10, ".%d", i);
4012 dstr = duplicate(subdisplay);
4013 disp = XOpenDisplay(dstr);
4016 char s[1024], ss[1024], *home;
4018 EDBUG(6, "SetupDirs");
4019 - Esnprintf(s, sizeof(s), "%s", UserEDir());
4020 + snprintf(s, sizeof(s), "%s", UserEDir());
4021 home = homedir(getuid());
4028 - Esnprintf(ss, sizeof(ss), "%s.old", UserEDir());
4029 + snprintf(ss, sizeof(ss), "%s.old", UserEDir());
4033 @@ -588,37 +588,37 @@
4037 - Esnprintf(s, sizeof(s), "%s/themes", UserEDir());
4038 + snprintf(s, sizeof(s), "%s/themes", UserEDir());
4043 - Esnprintf(s, sizeof(s), "%s/backgrounds", UserEDir());
4044 + snprintf(s, sizeof(s), "%s/backgrounds", UserEDir());
4049 - Esnprintf(s, sizeof(s), "%s/cached", UserCacheDir());
4050 + snprintf(s, sizeof(s), "%s/cached", UserCacheDir());
4055 - Esnprintf(s, sizeof(s), "%s/cached/img", UserCacheDir());
4056 + snprintf(s, sizeof(s), "%s/cached/img", UserCacheDir());
4061 - Esnprintf(s, sizeof(s), "%s/cached/cfg", UserCacheDir());
4062 + snprintf(s, sizeof(s), "%s/cached/cfg", UserCacheDir());
4067 - Esnprintf(s, sizeof(s), "%s/cached/bgsel", UserCacheDir());
4068 + snprintf(s, sizeof(s), "%s/cached/bgsel", UserCacheDir());
4073 - Esnprintf(s, sizeof(s), "%s/cached/pager", UserCacheDir());
4074 + snprintf(s, sizeof(s), "%s/cached/pager", UserCacheDir());
4079 Esetenv("EROOT", __XOS2RedirRoot(ENLIGHTENMENT_ROOT), 1);
4081 Esetenv("EBIN", ENLIGHTENMENT_BIN, 1);
4082 - Esnprintf(s, sizeof(s), "%i", getpid());
4083 + snprintf(s, sizeof(s), "%i", getpid());
4084 Esetenv("EPID", s, 1);
4085 Esetenv("ETHEME", themepath, 1);
4086 Esetenv("ECONFDIR", UserEDir(), 1);
4091 - Esnprintf(s, sizeof(s), "pix/wait%i.png", i);
4092 + snprintf(s, sizeof(s), "pix/wait%i.png", i);
4098 EDBUG(3, "SetupUserInitialization");
4100 - Esnprintf(file, sizeof(file), "%s/.initialized", UserEDir());
4101 + snprintf(file, sizeof(file), "%s/.initialized", UserEDir());
4109 - Esnprintf(file, sizeof(file), "exec %s/scripts/e_gen_menu",
4110 + snprintf(file, sizeof(file), "exec %s/scripts/e_gen_menu",
4111 ENLIGHTENMENT_ROOT);
4112 execl(usershell(getuid()), usershell(getuid()), "-c", (char *)file,
4114 diff -ur enlightenment-0.16.6.orig/src/snaps.c enlightenment-0.16.6/src/snaps.c
4115 --- enlightenment-0.16.6.orig/src/snaps.c Wed Nov 5 18:58:51 2003
4116 +++ enlightenment-0.16.6/src/snaps.c Wed Nov 12 17:23:52 2003
4120 if ((ewin->client.name) && (ewin->client.class))
4121 - Esnprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4122 + snprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4123 ewin->client.class);
4124 else if (ewin->client.title)
4125 - Esnprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4126 + snprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4129 sn = FindItem(buf, 0, LIST_FINDBY_BOTH, LIST_TYPE_SNAPSHOT);
4133 if ((ewin->client.name) && (ewin->client.class))
4134 - Esnprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4135 + snprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4136 ewin->client.class);
4137 else if (ewin->client.title)
4138 - Esnprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4139 + snprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4140 sn = NewSnapshot(buf);
4141 ListChangeItemID(LIST_TYPE_SNAPSHOT, sn, 1);
4142 if ((ewin->client.name) && (ewin->client.class))
4143 @@ -816,10 +816,10 @@
4146 if ((ewin->client.name) && (ewin->client.class))
4147 - Esnprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4148 + snprintf(buf, sizeof(buf), "%s.%s", ewin->client.name,
4149 ewin->client.class);
4150 else if (ewin->client.title)
4151 - Esnprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4152 + snprintf(buf, sizeof(buf), "TITLE.%s", ewin->client.title);
4160 - Esnprintf(buf, sizeof(buf), "%s.snapshots.%i", GetGenericSMFile(), root.scr);
4161 + snprintf(buf, sizeof(buf), "%s.snapshots.%i", GetGenericSMFile(), root.scr);
4164 Alert(_("Error saving snaps file\n"));
4169 - Esnprintf(buf, sizeof(buf), "%s.snapshots.%i", GetSMFile(), root.scr);
4170 + snprintf(buf, sizeof(buf), "%s.snapshots.%i", GetSMFile(), root.scr);
4172 - Esnprintf(buf, sizeof(buf), "%s.snapshots.%i", GetGenericSMFile(),
4173 + snprintf(buf, sizeof(buf), "%s.snapshots.%i", GetGenericSMFile(),
4176 f = fopen(buf, "r");
4177 @@ -1239,7 +1239,7 @@
4179 if ((hint.res_name) && (hint.res_class))
4181 - Esnprintf(buf, sizeof(buf), "%s.%s", hint.res_name, hint.res_class);
4182 + snprintf(buf, sizeof(buf), "%s.%s", hint.res_name, hint.res_class);
4183 sn = FindItem(buf, 0, LIST_FINDBY_BOTH, LIST_TYPE_SNAPSHOT);
4186 @@ -1265,7 +1265,7 @@
4188 if ((hint.res_name) && (hint.res_class))
4190 - Esnprintf(buf, sizeof(buf), "%s.%s", hint.res_name, hint.res_class);
4191 + snprintf(buf, sizeof(buf), "%s.%s", hint.res_name, hint.res_class);
4192 sn = FindItem(buf, 0, LIST_FINDBY_BOTH, LIST_TYPE_SNAPSHOT);
4195 diff -ur enlightenment-0.16.6.orig/src/startup.c enlightenment-0.16.6/src/startup.c
4196 --- enlightenment-0.16.6.orig/src/startup.c Wed Nov 5 18:58:51 2003
4197 +++ enlightenment-0.16.6/src/startup.c Wed Nov 12 17:23:52 2003
4202 - Esnprintf(tmp, 2048, "%s/estrt_%i",
4203 + snprintf(tmp, 2048, "%s/estrt_%i",
4204 (getenv("TMPDIR") == NULL) ? "/tmp" : getenv("TMPDIR"),
4206 f1 = fopen(file, "r");
4207 @@ -142,19 +142,19 @@
4210 h = homedir(getuid());
4211 - Esnprintf(s, 1024, "%s/.xsession", h);
4212 + snprintf(s, 1024, "%s/.xsession", h);
4213 val |= AddEToFile(s);
4214 - Esnprintf(s, 1024, "%s/.xinitrc", h);
4215 + snprintf(s, 1024, "%s/.xinitrc", h);
4216 val |= AddEToFile(s);
4217 - Esnprintf(s, 1024, "%s/.Xclients", h);
4218 + snprintf(s, 1024, "%s/.Xclients", h);
4219 val |= AddEToFile(s);
4222 - Esnprintf(s, 1024, "%s/.xsession", h);
4223 + snprintf(s, 1024, "%s/.xsession", h);
4225 - Esnprintf(s, 1024, "%s/.xinitrc", h);
4226 + snprintf(s, 1024, "%s/.xinitrc", h);
4228 - Esnprintf(s, 1024, "%s/.Xclients", h);
4229 + snprintf(s, 1024, "%s/.Xclients", h);
4233 diff -ur enlightenment-0.16.6.orig/src/tclass.c enlightenment-0.16.6/src/tclass.c
4234 --- enlightenment-0.16.6.orig/src/tclass.c Wed Nov 5 18:58:51 2003
4235 +++ enlightenment-0.16.6/src/tclass.c Wed Nov 12 17:23:52 2003
4240 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
4241 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
4243 DIALOG_OK(_("TextClass Error!"), stuff);
4245 diff -ur enlightenment-0.16.6.orig/src/text.c enlightenment-0.16.6/src/text.c
4246 --- enlightenment-0.16.6.orig/src/text.c Wed Nov 5 18:58:51 2003
4247 +++ enlightenment-0.16.6/src/text.c Wed Nov 12 17:23:52 2003
4252 - Esnprintf(s, sizeof(s), "ttfonts/%s.ttf", w);
4253 + snprintf(s, sizeof(s), "ttfonts/%s.ttf", w);
4257 diff -ur enlightenment-0.16.6.orig/src/theme.c enlightenment-0.16.6/src/theme.c
4258 --- enlightenment-0.16.6.orig/src/theme.c Wed Nov 5 18:58:51 2003
4259 +++ enlightenment-0.16.6/src/theme.c Wed Nov 12 17:23:52 2003
4262 if (!strcmp(str[i], "DEFAULT"))
4264 - Esnprintf(ss, sizeof(ss), "%s/%s", dir, str[i]);
4265 + snprintf(ss, sizeof(ss), "%s/%s", dir, str[i]);
4267 if (readlink(ss, s, sizeof(s)) > 0)
4273 - Esnprintf(s, sizeof(s), "%s/%s", dir, s);
4274 + snprintf(s, sizeof(s), "%s/%s", dir, s);
4282 - Esnprintf(s, sizeof(s), "%s/%s", dir, str[i]);
4283 + snprintf(s, sizeof(s), "%s/%s", dir, str[i]);
4284 if ((isdir(s)) && (SanitiseThemeDir(s)))
4286 else if ((isfile(s)) && (FileExtension(s))
4287 @@ -113,12 +113,12 @@
4291 - Esnprintf(s, sizeof(s), "%s/themes", UserEDir());
4292 + snprintf(s, sizeof(s), "%s/themes", UserEDir());
4293 def = append_merge_dir(s, &list, &count);
4295 - Esnprintf(s, sizeof(s), "%s/themes", ENLIGHTENMENT_ROOT);
4296 + snprintf(s, sizeof(s), "%s/themes", ENLIGHTENMENT_ROOT);
4298 - Esnprintf(s, sizeof(s), "%s/themes", __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
4299 + snprintf(s, sizeof(s), "%s/themes", __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
4301 def2 = append_merge_dir(s, &list, &count);
4307 - Esnprintf(ss, sizeof(ss), "%s/themes/DEFAULT", UserEDir());
4308 + snprintf(ss, sizeof(ss), "%s/themes/DEFAULT", UserEDir());
4310 count = readlink(ss, s, sizeof(s));
4311 if ((exists(ss)) && (count > 0))
4316 - Esnprintf(ss, sizeof(ss), "%s/themes/%s", UserEDir(), s);
4317 + snprintf(ss, sizeof(ss), "%s/themes/%s", UserEDir(), s);
4318 def = duplicate(ss);
4325 - Esnprintf(ss, sizeof(ss), "%s/themes/DEFAULT", ENLIGHTENMENT_ROOT);
4326 + snprintf(ss, sizeof(ss), "%s/themes/DEFAULT", ENLIGHTENMENT_ROOT);
4328 - Esnprintf(ss, sizeof(ss), "%s/themes/DEFAULT",
4329 + snprintf(ss, sizeof(ss), "%s/themes/DEFAULT",
4330 __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
4337 - Esnprintf(ss, sizeof(ss), "%s/themes/%s", ENLIGHTENMENT_ROOT,
4338 + snprintf(ss, sizeof(ss), "%s/themes/%s", ENLIGHTENMENT_ROOT,
4340 def = duplicate(ss);
4344 char ss[FILEPATH_LEN_MAX];
4346 - Esnprintf(ss, sizeof(ss), "%s/themes/DEFAULT", UserEDir());
4347 + snprintf(ss, sizeof(ss), "%s/themes/DEFAULT", UserEDir());
4351 @@ -246,14 +246,14 @@
4352 /* make the temp dir */
4354 themename = fileof(theme);
4355 - Esnprintf(th, sizeof(th), "%s/themes/%s", UserEDir(), themename);
4356 + snprintf(th, sizeof(th), "%s/themes/%s", UserEDir(), themename);
4359 /* check magic numbers */
4360 if ((buf[0] == 31) && (buf[1] == 139))
4362 /*gzipped tarball */
4363 - Esnprintf(s, sizeof(s),
4364 + snprintf(s, sizeof(s),
4365 "gzip -d -c < %s | (cd %s ; tar -xf -)", theme, th);
4367 else if ((buf[257] == 'u') && (buf[258] == 's')
4369 && (buf[261] == 'r'))
4371 /*vanilla tarball */
4372 - Esnprintf(s, sizeof(s), "(cd %s ; tar -xf %s)", th, theme);
4373 + snprintf(s, sizeof(s), "(cd %s ; tar -xf %s)", th, theme);
4375 /* exec the untar if tarred */
4378 char sss[FILEPATH_LEN_MAX];
4381 - Esnprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
4382 + snprintf(sss, sizeof(sss), "/bin/rm -rf %s", themepath);
4384 - Esnprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
4385 + snprintf(sss, sizeof(sss), "rm.exe -rf %s", themepath);
4393 - Esnprintf(s, sizeof(s), "%s/themes/DEFAULT", ENLIGHTENMENT_ROOT);
4394 + snprintf(s, sizeof(s), "%s/themes/DEFAULT", ENLIGHTENMENT_ROOT);
4396 - Esnprintf(s, sizeof(s), "%s/themes/DEFAULT",
4397 + snprintf(s, sizeof(s), "%s/themes/DEFAULT",
4398 __XOS2RedirRoot(ENLIGHTENMENT_ROOT));
4400 EDBUG_RETURN(duplicate(s));
4402 ret = ExtractTheme(theme);
4405 - Esnprintf(s, sizeof(s), "%s/themes/%s", UserEDir(), theme);
4406 + snprintf(s, sizeof(s), "%s/themes/%s", UserEDir(), theme);
4408 ret = ExtractTheme(s);
4414 - Esnprintf(s, sizeof(s), "%s/themes/%s", ENLIGHTENMENT_ROOT, theme);
4415 + snprintf(s, sizeof(s), "%s/themes/%s", ENLIGHTENMENT_ROOT, theme);
4417 - Esnprintf(s, sizeof(s), "%s/themes/%s",
4418 + snprintf(s, sizeof(s), "%s/themes/%s",
4419 __XOS2RedirRoot(ENLIGHTENMENT_ROOT), theme);
4426 - Esnprintf(s, sizeof(s),
4427 + snprintf(s, sizeof(s),
4428 _("The theme:\n" "%s\n"
4429 "Is a badly formed theme package and is thus not being used.\n"
4430 "Enlightenment has fallen back to using the DEFAULT theme.\n"
4431 diff -ur enlightenment-0.16.6.orig/src/tooltips.c enlightenment-0.16.6/src/tooltips.c
4432 --- enlightenment-0.16.6.orig/src/tooltips.c Wed Nov 5 18:58:51 2003
4433 +++ enlightenment-0.16.6/src/tooltips.c Wed Nov 12 17:23:52 2003
4438 - Esnprintf(stuff, sizeof(stuff), _("%u references remain\n"),
4439 + snprintf(stuff, sizeof(stuff), _("%u references remain\n"),
4441 DIALOG_OK(_("ToolTip Error!"), stuff);