aboutsummaryrefslogtreecommitdiff
path: root/shared/toxy
diff options
context:
space:
mode:
Diffstat (limited to 'shared/toxy')
-rw-r--r--shared/toxy/scriptlet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/toxy/scriptlet.c b/shared/toxy/scriptlet.c
index db836ab..622512e 100644
--- a/shared/toxy/scriptlet.c
+++ b/shared/toxy/scriptlet.c
@@ -238,7 +238,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
t_canvas *cv;
if (cv = scriptlet_canvasvalidate(sp, visedonly))
{
- sprintf(obuf, ".x%x.c.%s%x", (int)cv, sp->s_item->s_name,
+ sprintf(obuf, ".x%lx.c.%s%x", (int)cv, sp->s_item->s_name,
(int)sp->s_owner);
len = 1;
}
@@ -250,7 +250,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
t_canvas *cv;
if (cv = scriptlet_canvasvalidate(sp, visedonly))
{
- sprintf(obuf, ".x%x", (int)cv);
+ sprintf(obuf, ".x%lx", (int)cv);
len = 1;
}
}
@@ -284,7 +284,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
{
glist = cv->gl_owner;
if (glist && glist_isvisible(glist))
- sprintf(obuf, ".x%x", (int)glist);
+ sprintf(obuf, ".x%lx", (int)glist);
else
obuf[0] = 0;
len = 7;
@@ -293,7 +293,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
{
glist = canvas_getrootfor(cv);
if (glist && glist_isvisible(glist))
- sprintf(obuf, ".x%x", (int)glist);
+ sprintf(obuf, ".x%lx", (int)glist);
else
obuf[0] = 0;
len = 5;
@@ -303,7 +303,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
if (glist = canvas_getrootfor(cv))
glist = glist->gl_owner;
if (glist && glist_isvisible(glist))
- sprintf(obuf, ".x%x", (int)glist);
+ sprintf(obuf, ".x%lx", (int)glist);
else
obuf[0] = 0;
len = 6;
@@ -313,7 +313,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf,
glist = cv;
while (glist->gl_owner) glist = glist->gl_owner;
if (glist && glist_isvisible(glist))
- sprintf(obuf, ".x%x", (int)glist);
+ sprintf(obuf, ".x%lx", (int)glist);
else
obuf[0] = 0;
len = 4;