* TNF needs more to silence char subscript warnings (on 3.0-stable)

* bump vsn
This commit is contained in:
tg
2006-07-11 14:51:01 +00:00
parent f54064509e
commit 64598758fb
4 changed files with 14 additions and 14 deletions

6
var.c
View File

@@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.20 2006/07/03 12:16:31 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.21 2006/07/11 14:51:01 tg Exp $");
/*
* Variables
@@ -530,11 +530,11 @@ formatstr(struct tbl *vp, const char *s)
if (vp->flag & UCASEV_AL) {
for (q = p; *q; q++)
if (islower((unsigned char)*q))
*q = toupper(*q);
*q = toupper((unsigned char)*q);
} else if (vp->flag & LCASEV) {
for (q = p; *q; q++)
if (isupper((unsigned char)*q))
*q = tolower(*q);
*q = tolower((unsigned char)*q);
}
return p;