version 1.10, 2025/04/15 16:49:36
|
version 1.11, 2025/04/15 18:19:40
|
Line 25
|
Line 25
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.11 2025/04/15 18:19:40 snw |
|
* Further attempts to fix FreeBSD |
|
* |
* Revision 1.10 2025/04/15 16:49:36 snw |
* Revision 1.10 2025/04/15 16:49:36 snw |
* Make use of logprintf throughout codebase |
* Make use of logprintf throughout codebase |
* |
* |
Line 237 int read_profile_string(char *file, char
|
Line 240 int read_profile_string(char *file, char
|
snprintf(fullsec, CONF_BUFSIZE - 1, "[%s]%c", section, '\0'); |
snprintf(fullsec, CONF_BUFSIZE - 1, "[%s]%c", section, '\0'); |
|
|
strcpy(cursec, "[]"); |
strcpy(cursec, "[]"); |
|
if ((fp = fopen(file, "r")) == NULL) { |
|
return FALSE; |
fp = fopen(file, "r"); |
} |
|
|
while(fgets(line, CONF_BUFSIZE - 1, fp) != NULL) { |
while(fgets(line, CONF_BUFSIZE - 1, fp) != NULL) { |
++lnum; |
++lnum; |