delorie.com/archives/browse.cgi | search |
Date: | Wed, 5 Feb 1997 12:12:19 -0500 (EST) |
From: | Nikita Proskourine <nproskou AT goucher DOT edu> |
To: | Pyro Technic <invid AT dmv DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: SIGSEV hates me |
In-Reply-To: | <32F56281.2014@dmv.com> |
Message-ID: | <Pine.SUN.3.91.970205121022.2268E-100000@rwd> |
MIME-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |