diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:40:19 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:40:19 -0800 |
commit | 684e4321fa7e96a61f45dc133816ab92a173a52d (patch) | |
tree | c9e0e76fa4deb06d7ca0852c9313e2eb7fb1f3b1 /text.c | |
parent | 63e7fce72d704036016258b2cb55c5624f571d92 (diff) |
Trim trailing whitespace from lines
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'text.c')
-rw-r--r-- | text.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -98,11 +98,11 @@ create_text_choice(Widget w, int type, int length, int width) /* label uses type to find out what its title is */ label = XtCreateManagedWidget(labels[type],labelWidgetClass,w, labelargs,XtNumber(labelargs)); - + /* text uses type to find out what its string is */ switch (type) { case TForeground: - snprintf(textstrings[type],sizeof textstrings[type], + snprintf(textstrings[type],sizeof textstrings[type], "%d",(int) X.gcv.foreground); snprintf(oldtextstrings[type],sizeof oldtextstrings[type], "%d",(int) X.gcv.foreground); @@ -153,7 +153,7 @@ WriteText(Widget w, XEvent *event, String *params, Cardinal *num_params) } if (strcmp(textstrings[type],oldtextstrings[type])) { strcpy(oldtextstrings[type],textstrings[type]); - snprintf(mbuf,sizeof mbuf,"%s%s\n", + snprintf(mbuf,sizeof mbuf,"%s%s\n", names[type], /* the right first half */ textstrings[type]); /* the right second half */ interpret(mbuf); /* send it off */ |