ref: db0ad4542a57e73b2a1ad4d82b3ae3c43e8b8ab7
parent: eb1316e07a07693ae0f2fad1298be40b9e86052b
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Apr 18 17:54:12 EDT 2013
tr: strip tabs from macro names
--- a/tr.c
+++ b/tr.c
@@ -291,10 +291,10 @@
static char *arg_regname(char *s, int len)
{
char *e = s + 2;
- int c;
- while ((c = cp_next()) == ' ')
- ;
- while (s < e && c >= 0 && c != ' ' && c != '\n') {
+ int c = cp_next();
+ while (c == ' ' || c == '\t')
+ c = cp_next();
+ while (s < e && c >= 0 && c != ' ' && c != '\t' && c != '\n') {
*s++ = c;
c = cp_next();
}