Re: [CODE] Say command crashes goodies tarball?

From: Mark Garringer (zizazat@hotmail.com)
Date: 01/25/03


>sizeof("aehiopstuwxyz") == 13 > sizeof(letters) == 12
>
>The bug is in the strcpy() above. letters should be at least
>sizeof() the longest string in the switch, and you wouldn't
>really be wasting a lot of space if you made it a bit larger;
>
>char letters[50];

We were able to find that too finally :)

Even after my own friendly reminder comment to up the size of letters[]
I guess I just can't count.

Thanks to everyone for their feedback and help!

--Ziz

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT