ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/RtraceSimulManager.cpp
(Generate patch)

Comparing ray/src/rt/RtraceSimulManager.cpp (file contents):
Revision 2.13 by greg, Sat Aug 3 15:38:06 2024 UTC vs.
Revision 2.14 by greg, Mon Aug 5 19:51:18 2024 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines