Skip to content

Commit bc1bada

Browse files
committed
cleanup
1 parent 823d19b commit bc1bada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pens/main/xtpen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,10 +1282,10 @@ void actionGoto(Widget w, XEvent *ev, String *p, Cardinal *np)
12821282
void set_mode_label(const char *newlab)
12831283
{
12841284
Arg arg[1];
1285-
char text[32];
1285+
char text[33];
12861286

12871287
if( wantLabels ){
1288-
memcpy( text, newlab, 32 );
1288+
strncpy( text, newlab, 32 );
12891289
XtSetArg( arg[0], XtNlabel, text );
12901290
XtSetValues( mode_button , arg, ONE );
12911291
}

0 commit comments

Comments
 (0)