Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 1996 09:01:50 -0800 (PST)
From:      Bill Paul <wpaul>
To:        CVS-committers, cvs-all, cvs-lib
Subject:   cvs commit:  src/lib/libc/net gethostbynis.c
Message-ID:  <199612241701.JAA26187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wpaul       96/12/24 09:01:50

  Modified:    lib/libc/net  gethostbynis.c
  Log:
  Another one-liner: remember to NUL terminate local copy of NIS host
  lookup results. Without this, doing multiple host/addr lookups in a
  single process yeilds strange results (the buffer is static, and
  garbage may be left behind from previous lookups).
  
  I just noticed this in 2.2-BETA. Unless somebody threatens to chop my
  hands off with an axe, I'm going to move this to the 2.2-RELENG branch
  shortly.
  
  Revision  Changes    Path
  1.5       +3 -2      src/lib/libc/net/gethostbynis.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612241701.JAA26187>