From owner-freebsd-current Sat Sep 14 15:23:14 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA11927 for current-outgoing; Sat, 14 Sep 1996 15:23:14 -0700 (PDT) Received: from mail.crl.com (mail.crl.com [165.113.1.22]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA11917 for ; Sat, 14 Sep 1996 15:23:08 -0700 (PDT) Received: from math.psu.edu (leibniz.math.psu.edu) by mail.crl.com with SMTP id AA17518 (5.65c/IDA-1.5 for ); Sat, 14 Sep 1996 15:23:47 -0700 Received: from augusta.math.psu.edu (cross@augusta.math.psu.edu [146.186.132.2]) by math.psu.edu (8.7.5/8.7.3) with ESMTP id SAA00589; Sat, 14 Sep 1996 18:20:27 -0400 (EDT) Received: from localhost (cross@localhost) by augusta.math.psu.edu (8.7.5/8.7.3) with ESMTP id SAA02210; Sat, 14 Sep 1996 18:20:47 -0400 (EDT) Message-Id: <199609142220.SAA02210@augusta.math.psu.edu> To: Wolfram Schneider Cc: current@freebsd.org Subject: Re: str*cmp In-Reply-To: Your message of "Sat, 14 Sep 1996 21:43:43 +0200." <199609141943.VAA02898@campa.panke.de> Date: Sat, 14 Sep 1996 18:20:46 -0400 From: Dan Cross Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > int > strcmp(s1, s2) > register const char *s1, *s2; > { > while (*s1 == *s2++) > if (*s1++ == 0) > ^^^^^^^^^^ > should be (*s1++ == '\0') '\0' == 0. - Dan C.