Today's changes.
More changes.
This commit is contained in:
parent
cb27443abf
commit
8ad517944e
73 changed files with 2865 additions and 1293 deletions
|
|
@ -14,7 +14,7 @@ static struct {
|
|||
};
|
||||
|
||||
char*
|
||||
_p9translate(char *old)
|
||||
plan9translate(char *old)
|
||||
{
|
||||
char *new;
|
||||
int i, olen, nlen, len;
|
||||
|
|
@ -36,7 +36,7 @@ _p9translate(char *old)
|
|||
len = strlen(old)+nlen-olen;
|
||||
new = malloc(len+1);
|
||||
if(new == nil)
|
||||
return nil;
|
||||
return "<out of memory>";
|
||||
strcpy(new, replace[i].new);
|
||||
strcpy(new+nlen, old+olen);
|
||||
assert(strlen(new) == len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue