[BACK]Return to dirname.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/dirname.c between version 1.13 and 1.13.22.1

version 1.13, 2014/07/16 10:52:26 version 1.13.22.1, 2018/09/30 01:45:33
Line 83  xdirname_r(const char *path, char *buf, 
Line 83  xdirname_r(const char *path, char *buf, 
 out:  out:
         if (buf != NULL && buflen != 0) {          if (buf != NULL && buflen != 0) {
                 buflen = MIN(len, buflen - 1);                  buflen = MIN(len, buflen - 1);
                 memcpy(buf, path, buflen);                  if (buf != path)
                           memcpy(buf, path, buflen);
                 buf[buflen] = '\0';                  buf[buflen] = '\0';
         }          }
         return len;          return len;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.13.22.1

CVSweb <webmaster@jp.NetBSD.org>