summaryrefslogtreecommitdiff
path: root/app/xgc/testfrac.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-28 10:05:29 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-28 10:05:29 +0000
commitb2e70c08fce4317fa1b6a8c21b3863d104ef1a33 (patch)
tree45de5a529b57277517f0fcf088241430ac1939d1 /app/xgc/testfrac.c
parent9f80515f8ba84a4eff4614fd189c7bd0f246989d (diff)
Update to xgc 1.0.2
Diffstat (limited to 'app/xgc/testfrac.c')
-rw-r--r--app/xgc/testfrac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/xgc/testfrac.c b/app/xgc/testfrac.c
index 0e5018a8a..c5afd7537 100644
--- a/app/xgc/testfrac.c
+++ b/app/xgc/testfrac.c
@@ -43,7 +43,7 @@ slider_jump(Widget w, caddr_t data, caddr_t position)
float oldpercent; /* where the scrollbar is */
float newpercent; /* normalized scrollbar */
- char snewpercent[3]; /* string representation of scrollbar */
+ char snewpercent[4]; /* string representation of scrollbar */
oldpercent = *(float *) position;
@@ -131,7 +131,6 @@ create_testfrac_choice(Widget w)
};
static Arg percentargs[] = {
- {XtNborderWidth, (XtArgVal) 1},
{XtNhorizDistance, (XtArgVal) 10},
{XtNfromHoriz, (XtArgVal) NULL}
};
@@ -162,7 +161,7 @@ create_testfrac_choice(Widget w)
label = XtCreateManagedWidget("Percentage of Test",labelWidgetClass,w,
labelargs,XtNumber(labelargs));
- percentargs[2].value = (XtArgVal) label;
+ percentargs[1].value = (XtArgVal) label;
percent = XtCreateManagedWidget("100",labelWidgetClass,w,
percentargs,XtNumber(percentargs));