Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
#247: cope with settings-as-files having been dos2unix'd
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Jun 27, 2016
1 parent 5d77a13 commit c2f5eb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions windows/winstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,12 @@ void *file_open_settings_r(const char *sessionname)
if (!p) break;
*p = '\0';
++p;

// allow for someone having dos2unix'd our file
if (*p == '\r')
++p;

assert('\n' == *p);
++p; /* for "\\\n" - human readable files */

st2 = snew( struct setItem );
Expand Down

0 comments on commit c2f5eb7

Please sign in to comment.