LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   strcpy causing segfault (https://www.linuxquestions.org/questions/programming-9/strcpy-causing-segfault-165560/)

The_Nerd 04-06-2004 04:39 PM

Well, that is a little large for that array. However I don't see any problem right now... hmmm, you may want to check len before you index the array with it however, because read could return a WAY larger number than you expect.

jpbarto 04-06-2004 10:00 PM

Guys, first I want to thank you for all your help. Your suggestions have been really helpful and I sincerely appreciate your time. However at the moment this little snag has taken up too much time and the code seems to operate properly as long as I do not try to load too much text into the allocated string. I know this is not the best approach, but right now I have other things that need my attention (like getting the Pixmaps to properly scale to varying screen sizes and possibilites for image / pixmap transparency).

So thank you again, but for the moment I'm walking away from this issue and may come back to it in the future when the screensaver is nearer completion.

Thanks,
jpbarto

The_Nerd 04-07-2004 09:40 PM

No problamo! Any time pal. :D


All times are GMT -5. The time now is 05:54 PM.