Skip to content
Snippets Groups Projects
Commit fc7d5cbc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If XTRN.DAT can't be opened, try lowercase xtrn.dat

This lowercase's the entire path.

Fixes issue #543
parent 131f9d7c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4057 passed
......@@ -1771,8 +1771,12 @@ void initdata(void)
sprintf(str,"%sXTRN.DAT",node_dir);
if((stream=fopen(str,"rt"))==NULL) {
printf("Can't open %s\r\n",str);
exit(1); }
strlwr(str);
if((stream=fopen(str,"rt"))==NULL) {
printf("Can't open %s\r\n",str);
exit(1);
}
}
fgets(str,81,stream); /* username */
sprintf(user_name,"%.25s",str);
truncsp(user_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment