Bill Holler wrote: > Hi. > > There is a bug in the carlsonj code example. buf[32] must be buf[34]. > The string "0123456abcdefghijklmnopqrstuvwxyz" is 34 bytes including the '\0'. > The first strcpy() clobbers some of main()'s stack.
Doh! Quite right. That lower limit was left over from earlier unsuccessful attempts to reproduce the problem. It does hint at a possibility, though: perhaps the code that's now failing has a similar overrun bug. The results are just too strange. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code