summaryrefslogtreecommitdiff
path: root/xfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'xfd.c')
-rw-r--r--xfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfd.c b/xfd.c
index c339acf..14f0e4a 100644
--- a/xfd.c
+++ b/xfd.c
@@ -431,7 +431,6 @@ change_page(int page)
{
long oldstart, newstart;
int ncols, nrows;
- char buf[256];
Arg arg;
arg.name = XtNstartChar;
@@ -453,6 +452,7 @@ change_page(int page)
if (!page || newstart != oldstart) {
unsigned int row = (unsigned int) ((newstart >> 8));
unsigned int col = (unsigned int) (newstart & 0xff);
+ char buf[256];
XtSetArg (arg, XtNlabel, buf);
snprintf (buf, sizeof(buf), xfd_resources.start_format,