Diff for /libaitcfg/src/parse.c between versions 1.21 and 1.22

version 1.21, 2023/01/23 23:27:26 version 1.22, 2025/08/19 11:43:53
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2023Copyright 2004 - 2025
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 77  cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg) Line 77  cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg)
                         break;                          break;
 #endif  #endif
                 if (!(psAttr = strpbrk(line, "\r\n"))) {                  if (!(psAttr = strpbrk(line, "\r\n"))) {
                        /* skip line, too long */                        if (feof(f) && strlen(line) > 0) {
                        continue;                                /* last line without end of line */
                                 strlcpy(origin, line, sizeof origin);
                                 str_Trim(line);
                         } else {
                                 /* skip line, too long */
                                 continue;
                         }
                 } else {                  } else {
                         *psAttr = 0;                          *psAttr = 0;
                         strlcpy(origin, line, sizeof origin);                          strlcpy(origin, line, sizeof origin);

Removed from v.1.21  
changed lines
  Added in v.1.22


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