| # | Line 69 | Line 69 | RadSimulManager::AddHeader(const char *str) | |
|---|---|---|
| 69 | { | |
| 70 | if (!str) return false; | |
| 71 | int len = strlen(str); | |
| 72 | < | while (len && str[len-1] == '\n') |
| 72 | > | while (len && (str[len-1] == '\n') | (str[len-1] == '\r')) |
| 73 | --len; // don't copy EOL(s) | |
| 74 | if (!len) | |
| 75 | return false; | |
| # | Line 106 | Line 106 | check_special(const char *s) | |
| 106 | ||
| 107 | // Append program line to header | |
| 108 | bool | |
| 109 | < | RadSimulManager::AddHeader(int ac, const char *av[]) |
| 109 | > | RadSimulManager::AddHeader(int ac, char *av[]) |
| 110 | { | |
| 111 | if ((ac <= 0) | !av) return false; | |
| 112 | int len = 0; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |