From owner-freebsd-commit Fri Mar 24 07:39:38 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA04572 for commit-outgoing; Fri, 24 Mar 1995 07:39:38 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA04534 for cvs-lib-outgoing; Fri, 24 Mar 1995 07:39:14 -0800 Received: (from ache@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA04514; Fri, 24 Mar 1995 07:38:58 -0800 Date: Fri, 24 Mar 1995 07:38:58 -0800 From: "Andrey A. Chernov" Message-Id: <199503241538.HAA04514@freefall.cdrom.com> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/net gethostnamadr.c Sender: commit-owner@FreeBSD.ORG Precedence: bulk ache 95/03/24 07:38:56 Modified: lib/libc/net gethostnamadr.c Log: Change strtok() to strsep(), cause memory corruption for all programs which use strtok() too in the same time. Fix potential NULL reference, depends of /etc/hosts.conf format Fix the bug when service name fetched always from beginning of the line, not from parsed token.