Diff for /freem/src/iniconf.c between versions 1.9 and 1.11

version 1.9, 2025/04/13 04:22:43 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
    *   Make use of logprintf throughout codebase
    *
  *   Revision 1.9  2025/04/13 04:22:43  snw   *   Revision 1.9  2025/04/13 04:22:43  snw
  *   Fix snprintf calls   *   Fix snprintf calls
  *   *
Line 92  extern char config_file[4096]; Line 98  extern char config_file[4096];
 #endif  #endif
   
   
 /* ini_keyvalue *ini_head; */  
   
 int get_conf(char *section, char *key, char *value)  int get_conf(char *section, char *key, char *value)
 {  {
     char *etcfile;      char *etcfile;
Line 236  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;

Removed from v.1.9  
changed lines
  Added in v.1.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>