What is wrong with this simple char filler?
<p>It seems and looks really simple but a seemingly random spot of the char array is not filling correctly with 8's. There are no compiler errors either. I'm sorry that this is such a noob question but when I designed a sudoku solver a month ago I didn't have any problems running codes almost identical to this.</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main () {

//Initiates initial board.
char board[30][27];

//Fills entire board with b's to represent the edges of the board where the pac-man cannot go.
for (int control=0; control&lt;31; control++) {
    for (int control2=0; control2&lt;28; control2++) {
        board[control][control2]='8';
    }
}

//Code here filling the board with spaces representing where the pac-man can go.

//Temporary render of board.
for (int control=0; control&lt;31; control++) {
    for (int control2=0; control2&lt;28; control2++) {
        cout &lt;&lt; board[control][control2];
    }
    cout &lt;&lt; endl;
}

return 0;
}
</code></pre>

<p>It apparently has a random segmentation fault.</p>
