diff options
author | Adam Jackson <ajax@redhat.com> | 2008-05-21 14:12:12 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-05-21 14:12:12 -0400 |
commit | 03c62eb709d18c4c0031389c4200b018b6ee352c (patch) | |
tree | 8bbe54c90af798e459b35c7280ac5eac4a9367ce | |
parent | 716e7a755d854ec914c202f16a62625dd1bd56d9 (diff) |
Fix a buffer overrun on the heap.
-rw-r--r-- | xvidtune.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |