[BACK]Return to lcmd1.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / window

Diff for /src/usr.bin/window/Attic/lcmd1.c between version 1.6 and 1.7

version 1.6, 2001/11/19 19:02:18 version 1.7, 2003/04/05 01:39:50
Line 330 
Line 330 
                 return;                  return;
         while (a->v_type != V_ERR) {          while (a->v_type != V_ERR) {
                 if (a->v_type == V_NUM) {                  if (a->v_type == V_NUM) {
                         (void) sprintf(buf, "%d", a->v_num);                          (void) snprintf(buf, sizeof(buf), "%d", a->v_num);
                         (void) write(w->ww_pty, buf, strlen(buf));                          (void) write(w->ww_pty, buf, strlen(buf));
                 } else                  } else
                         (void) write(w->ww_pty, a->v_str, strlen(a->v_str));                          (void) write(w->ww_pty, a->v_str, strlen(a->v_str));

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7