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

Commit c2f5eb7

Browse files
committedJun 27, 2016
#247: cope with settings-as-files having been dos2unix'd
1 parent 5d77a13 commit c2f5eb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎windows/winstore.c

+6
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,12 @@ void *file_open_settings_r(const char *sessionname)
10601060
if (!p) break;
10611061
*p = '\0';
10621062
++p;
1063+
1064+
// allow for someone having dos2unix'd our file
1065+
if (*p == '\r')
1066+
++p;
1067+
1068+
assert('\n' == *p);
10631069
++p; /* for "\\\n" - human readable files */
10641070

10651071
st2 = snew( struct setItem );

0 commit comments

Comments
 (0)
Failed to load comments.