On Aug 18 17:13, Bill Metzenthen wrote: > #include <stdio.h> > #include <string.h> > int main(int argc, char *argv[]) > { > char *s; > s = strerror(-8); > printf("strerror returned pointer %p\n", s); > printf("string is \"%s\"\n", s); > return 0; > } > > The output on my system is: > $ ./test-strerror.exe > strerror returned pointer 0x8c > Segmentation fault (core dumped)
Thanks for the testcase. I fixed a missing check for negative error numbers in strerror in current CVS. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/