git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes in swfstrings
[swftools.git]
/
lib
/
devices
/
ops.c
diff --git
a/lib/devices/ops.c
b/lib/devices/ops.c
index
cb0c6f1
..
bda4742
100644
(file)
--- a/
lib/devices/ops.c
+++ b/
lib/devices/ops.c
@@
-46,7
+46,7
@@
static void dbg(char*format, ...)
int l;
va_list arglist;
va_start(arglist, format);
int l;
va_list arglist;
va_start(arglist, format);
- vsprintf(buf, format, arglist);
+ vsnprintf(buf, sizeof(buf)-1, format, arglist);
va_end(arglist);
l = strlen(buf);
while(l && buf[l-1]=='\n') {
va_end(arglist);
l = strlen(buf);
while(l && buf[l-1]=='\n') {
@@
-66,7
+66,7
@@
inline gfxcolor_t transform_color(internal_t*i, gfxcolor_t*col)
col2.r = col->r;
col2.g = col->g;
col2.b = col->b;
col2.r = col->r;
col2.g = col->g;
col2.b = col->b;
- col2.a = (col->a * i->alpha)>>8;
+ col2.a = (col->a * i->alpha)/255;
return col2;
}
return col2;
}