Diff for /libelwix/src/av.c between versions 1.1 and 1.3.32.1

version 1.1, 2013/01/17 10:05:35 version 1.3.32.1, 2018/05/31 15:34:28
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 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.1  
changed lines
  Added in v.1.3.32.1


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