cvs commit: src/lib/libc/gen getcwd.c

Andrey A. Chernov ache at FreeBSD.org
Sun Sep 18 10:50:59 PDT 2005


ache        2005-09-18 17:50:58 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getcwd.c 
  Log:
  Just by allocating size*2 bytes we can't be sure that new size will be enough,
  so change two
          if (size not enough) {
                  reallocf(size*2);
          }
  into
          while (size not enough) {
                  reallocf(size*2);
          }
  
  Revision  Changes    Path
  1.28      +2 -2      src/lib/libc/gen/getcwd.c


More information about the cvs-src mailing list