Diff for /libelwix/src/av.c between versions 1.3 and 1.4

version 1.3, 2015/06/25 17:53:50 version 1.4, 2018/05/31 15:35:16
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 - 2015Copyright 2004 - 2018
         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 156  av_Path2File(const char * __restrict csArgs, char * __ Line 156  av_Path2File(const char * __restrict csArgs, char * __
   
         pos = strrchr(psBuf, '/');          pos = strrchr(psBuf, '/');
         if (!pos) {          if (!pos) {
                   if (psPath)
                           strlcpy(psPath, ".", pathLen);
   
                 strlcpy(psFile, psBuf, fileLen);                  strlcpy(psFile, psBuf, fileLen);
   
                 e_free(psBuf);                  e_free(psBuf);
Line 165  av_Path2File(const char * __restrict csArgs, char * __ Line 168  av_Path2File(const char * __restrict csArgs, char * __
   
         strlcpy(psFile, pos, fileLen);          strlcpy(psFile, pos, fileLen);
         if (psPath)          if (psPath)
                strlcpy(psPath, psBuf, pathLen);                strlcpy(psPath, *psBuf ? psBuf : "/", pathLen);
   
         e_free(psBuf);          e_free(psBuf);
         return 2;          return 2;

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


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