Diff for /libaitcfg/src/pwd.c between versions 1.4 and 1.4.24.1

version 1.4, 2014/01/29 23:48:34 version 1.4.24.1, 2022/12/05 22:02:11
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 - 2014Copyright 2004 - 2022
         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 94  cfgReadPasswd(FILE *f, pwd_root_t * __restrict pwd) Line 94  cfgReadPasswd(FILE *f, pwd_root_t * __restrict pwd)
   
         while (!feof(f)) {          while (!feof(f)) {
                 memset(line, 0, sizeof line);                  memset(line, 0, sizeof line);
                fgets(line, sizeof line - 1, f);                if (!fgets(line, sizeof(line) - 1, f))
                         break;
                 if (!(pos = strpbrk(line, "\r\n"))) {                  if (!(pos = strpbrk(line, "\r\n"))) {
                         /* skip line, too long */                          /* skip line, too long */
                         continue;                          continue;

Removed from v.1.4  
changed lines
  Added in v.1.4.24.1


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