summaryrefslogtreecommitdiff
path: root/xvidtune.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-05-21 14:12:12 -0400
committerAdam Jackson <ajax@redhat.com>2008-05-21 14:12:12 -0400
commit03c62eb709d18c4c0031389c4200b018b6ee352c (patch)
tree8bbe54c90af798e459b35c7280ac5eac4a9367ce /xvidtune.c
parent716e7a755d854ec914c202f16a62625dd1bd56d9 (diff)
Fix a buffer overrun on the heap.
Diffstat (limited to 'xvidtune.c')
-rw-r--r--xvidtune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xvidtune.c b/xvidtune.c
index 1bdf947..d7bf290 100644
--- a/xvidtune.c
+++ b/xvidtune.c
@@ -965,7 +965,7 @@ CreateTyp (
wids[0] = XtCreateWidget (w1name, labelWidgetClass, form, NULL, 0);
if (findex >= PixelClock && findex <= VSyncRate)
- (void) sprintf(buf, "%6.2f", (float)AppRes.field[findex].val / 1000.0);
+ (void) snprintf(buf, 10, "%6.2f", (float)AppRes.field[findex].val / 1000.0);
else
(void) sprintf (buf, "%5d", AppRes.field[findex].val);
wids[1] = XtVaCreateWidget (w2name, labelWidgetClass,