Hi Pierre, "Pierre A. Humblet" wrote: > > You are right, there is a bug in res_querydomain, > Line 737 *(ptr++ - 1) = '.'; should be > *ptr++ = '.'; > > I would also add a debug printf at the top of the function: > DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\" \"%s\" type %d\n", > Name, DomName, Type); > > Unfortunately I am not setup to build Cygwin so I can't test the above nor > submit a proper patch.
I downloaded the source code from your site: ftp://ftp.franken.de/pub/support/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.5/minires-0.97-src.tar.gz After a 'make', I get multiple warnings and errors, for example: resolver.h:48:6: fout: conflicting types for `dprintf´ void dprintf(char * format, ...); ^ In file included from /usr/include/string.h:10:0, from resolver.h:16, from minires.c:14: /usr/include/stdio.h:337:5: note: previous declaration of `dprintf´ was here int _EXFUN(dprintf, (int, const char *__restrict, ...) ^ Looks like the dprintf function is already defined in stdio.h. Are you using gcc? Greetings, Daniel -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple