Deleted Added
full compact
40c40
< "$FreeBSD: head/bin/ed/main.c 69247 2000-11-27 06:26:48Z kris $";
---
> "$FreeBSD: head/bin/ed/main.c 77407 2001-05-29 18:03:14Z imp $";
99c99
< char old_filename[MAXPATHLEN + 1] = ""; /* default filename */
---
> char old_filename[PATH_MAX] = ""; /* default filename */
951c951,952
< if (n) printf("%s\n", shcmd + 1);
---
> if (n)
> printf("%s\n", shcmd + 1);
953c954
< } else if (n - 1 > MAXPATHLEN) {
---
> } else if (n > PATH_MAX - 1) {
964c965
< REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
---
> REALLOC(file, filesz, PATH_MAX, NULL);
1341c1342
< /* strip_escapes: return copy of escaped string of at most length MAXPATHLEN */
---
> /* strip_escapes: return copy of escaped string of at most length PATH_MAX */
1351c1352
< REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
---
> REALLOC(file, filesz, PATH_MAX, NULL);
1394c1395
< (n = strlen(s)) + 8 <= MAXPATHLEN && /* "ed.hup" + '/' */
---
> (n = strlen(s)) + 8 <= PATH_MAX && /* "ed.hup" + '/' */