Seg Fault (Whats Wrong, strcpy)
<p>In GDB I get:</p>

<pre> 
(gdb) backtrace
0  0xb7d91544 in strcpy () from /lib/libc.so.6
1  0x08048982 in ISBN::ISBN(char const*, ISBNPrefix&) ()
2  0x08048d4a in main ()
(gdb)</pre>

<p>From this code:</p>

<pre><code>ISBN::ISBN(const char* str, ISBNPrefix&amp; list) {
    if(isValid(str)) {
            isSet = true;
            sprintf(*isbnStr,"%s",str);
    }
}
</code></pre>

<p>What exactly would be causing this?</p>

<p>isbnStr is created in the header:</p>

<pre><code>class ISBN
{
 ...
    char* isbnStr[11];
 ...
</code></pre>

<p>Any ideas on what I could be doing here to cause this seg fault?</p>

<p>The call in main is:</p>

<pre><code>ISBN* isbn = new ISBN("7999999008",*prefix);
</code></pre>
