Changeset 2294 for trunk/src/kash/var.c


Ignore:
Timestamp:
Feb 28, 2009, 9:33:26 AM (16 years ago)
Author:
bird
Message:

kash: more fixes + pipe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/var.c

    r2290 r2294  
    255255                vp->next = *vpp;
    256256                *vpp = vp;
    257                 vp->text = strdup(ip->text);
     257                vp->text = sh_strdup(psh, ip->text);
    258258                vp->flags = ip->flags;
    259259                vp->func = ip->func;
     
    265265                psh->vps1.next = *vpp;
    266266                *vpp = &psh->vps1;
    267                 psh->vps1.text = strdup(sh_geteuid(psh) ? "PS1=$ " : "PS1=# ");
     267                psh->vps1.text = sh_strdup(psh, sh_geteuid(psh) ? "PS1=$ " : "PS1=# ");
    268268                psh->vps1.flags = VSTRFIXED|VTEXTFIXED;
    269269        }
Note: See TracChangeset for help on using the changeset viewer.