Deleted Added
full compact
2c2
< * $FreeBSD: head/libexec/rtld-elf/libmap.c 115396 2003-05-29 22:58:26Z kan $
---
> * $FreeBSD: head/libexec/rtld-elf/libmap.c 115400 2003-05-30 00:49:16Z mdodd $
34c34
< static void lm_add (char *, char *, char *);
---
> static void lm_add (const char *, const char *, const char *);
48c48
< char *f, *t, *p;
---
> char *f, *t, *p, *c;
59c59
< t = f = NULL;
---
> t = f = c = NULL;
78c78
< p = cp++;
---
> c = cp++;
96c96
< while(isspace(*cp++));
---
> while(isspace(*cp)) *cp++;
99c99
< strcpy(prog, p);
---
> strcpy(prog, c);
125c125
< lm_add(p, xstrdup(f), xstrdup(t));
---
> lm_add(p, f, t);
162c162
< lm_add (char *p, char *f, char *t)
---
> lm_add (const char *p, const char *f, const char *t)
174,175c174,175
< lm->f = f;
< lm->t = t;
---
> lm->f = xstrdup(f);
> lm->t = xstrdup(t);
192c192
< lm_add(NULL, xstrdup(f), xstrdup(t));
---
> lm_add(NULL, f, t);