switch (t.v_type) {
case V_NUM:
p_error("%d: Not a variable.", t.v_num);
+ /* FALLTHROUGH */
case V_ERR:
t.v_str = 0;
break;
p_error("?: Numeric left operand required.");
str_free(v->v_str);
v->v_type = V_ERR;
+ /* FALLTHROUGH */
case V_ERR:
flag = 0;
break;
p_error("||: Numeric operands required.");
str_free(v->v_str);
v->v_type = V_ERR;
+ /* FALLTHROUGH */
case V_ERR:
flag = 0;
break;
p_error("&&: Numeric operands required.");
str_free(v->v_str);
v->v_type = V_ERR;
+ /* FALLTHROUGH */
case V_ERR:
flag = 0;
break;
* 1. setenv() copies the string,
* 2. we've already called tgetent which copies the termcap entry.
*/
- (void) sprintf(buf, "%sco#%d:li#%d:%s",
+ (void) sprintf(buf, "%sco#%d:li#%d:%.800s",
WWT_TERMCAP, wp->ww_w.nc, wp->ww_w.nr, wwwintermcap);
(void) setenv("TERMCAP", buf, 1);
(void) sprintf(buf, "%d", wp->ww_id + 1);