[BACK]Return to getcwd.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/getcwd.c between version 1.4 and 1.5

version 1.4, 1995/02/27 04:12:20 version 1.5, 1995/06/16 07:05:30
Line 130  getcwd(pt, size)
Line 130  getcwd(pt, size)
                          * path to the beginning of the buffer, but it's always                           * path to the beginning of the buffer, but it's always
                          * been that way and stuff would probably break.                           * been that way and stuff would probably break.
                          */                           */
                         (void)bcopy(bpt, pt, ept - bpt);                          bcopy(bpt, pt, ept - bpt);
                         free(up);                          free(up);
                         return (pt);                          return (pt);
                 }                  }
Line 206  getcwd(pt, size)
Line 206  getcwd(pt, size)
                                 goto err;                                  goto err;
                         bpt = pt + off;                          bpt = pt + off;
                         ept = pt + ptsize;                          ept = pt + ptsize;
                         (void)bcopy(bpt, ept - len, len);                          bcopy(bpt, ept - len, len);
                         bpt = ept - len;                          bpt = ept - len;
                 }                  }
                 if (!first)                  if (!first)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>