--- natd.c Thu Dec 1 09:45:19 2005 +++ natd.c.orig Thu Dec 1 09:44:48 2005 @@ -1498,17 +1498,8 @@ if (buf[len - 1] == '\n') buf[len - 1] = '\0'; else - if (buf[len - 1] != '\0') - { - len++; - buf = strcat(buf, "\0"); - } -/* - * This is being changed to correct the problem instead. - * - * errx(1, "config file format error: " - * "last line should end with newline"); - */ + errx(1, "config file format error: " + "last line should end with newline"); /* * Check for comments, strip off trailing spaces.