diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-29 11:08:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:06 -0800 |
commit | 05d8a7f7a785eff3292f0f0537bb3902930f1b5c (patch) | |
tree | 43dc322a988c1fab65622c2aea31c2b818ce20c8 /exa | |
parent | b967bf2af264726042e2f6ffb9ca7d234f34b56b (diff) |
Convert a bunch of sprintf to snprintf calls
This batch is the straightforward set - others are more complex and
need more analysis to determine right size to pass.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c index 6f2af8a8f..3974afe87 100644 --- a/exa/exa_render.c +++ b/exa/exa_render.c @@ -103,13 +103,13 @@ exaPrintCompositeFallback(CARD8 op, switch(op) { case PictOpSrc: - sprintf(sop, "Src"); + snprintf(sop, sizeof(sop), "Src"); break; case PictOpOver: - sprintf(sop, "Over"); + snprintf(sop, sizeof(sop), "Over"); break; default: - sprintf(sop, "0x%x", (int)op); + snprintf(sop, sizeof(sop), "0x%x", (int)op); break; } |