Date: Fri, 3 May 2002 12:45:41 -0700 (PDT) From: "J. Mallett" <jmallett@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/xargs strnsubst.c Message-ID: <200205031945.g43JjgE55836@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jmallett 2002/05/03 12:45:41 PDT Modified files: usr.bin/xargs strnsubst.c Log: Fix a bug whereby we were getting ~0 and comparing it to maxsize, i.e. if s1 was 0 length, and replstr was 0 length, etc., we would end up subtracting one from zero and seeing if it was greater than the size_t (unsigned) var maxsize... This would cause us to return a string consisting of essentially only match, which is not the right behaviour if we have 0 length inpline. Revision Changes Path 1.4 +1 -1 src/usr.bin/xargs/strnsubst.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205031945.g43JjgE55836>