Date: Wed, 5 Feb 1997 12:12:19 -0500 (EST) From: Nikita Proskourine To: Pyro Technic cc: djgpp AT delorie DOT com Subject: Re: SIGSEV hates me In-Reply-To: <32F56281.2014@dmv.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 2 Feb 1997, Pyro Technic wrote: > for(j=3; j>=0; ++j) It should be --, not ++. The reason why you get SIGSEGV is that you keep increasing index of j, and due to the lack of bounds checking on your array digit[], you basically write to random memory locations once j gets large enough. -- Nikita.