Skip to content

Commit 823d19b

Browse files
committed
cleanup
1 parent eb4d4e5 commit 823d19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pens/main/xtpen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ void set_mode_label(const char *newlab)
12851285
char text[32];
12861286

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

0 commit comments

Comments
 (0)