Path: utzoo!utgpu!water!watmath!watcgl!watmum!rmariani
From: rmariani@watmum.waterloo.edu (Rico Mariani)
Newsgroups: comp.sys.amiga
Subject: Bug in Aztec 3.6 strncat function
Message-ID: <4415@watcgl.waterloo.edu>
Date: 13 May 88 18:28:33 GMT
Sender: daemon@watcgl.waterloo.edu
Distribution: na
Lines: 30

main()
{
	char a[50];

	strcpy(a,"Hello ");
	strncat(a,"There",0);
	puts(a);

	strcpy(a,"Hello ");
	strncat(a,"There",1);
	puts(a);

	strcpy(a,"Hello ");
	strncat(a,"There",10);
	puts(a);
}

The output is

Hello There
Hello T
Hello There

It should be

Hello 			(there's a space after the Hello)
Hello T
Hello There

	-Rico