diff options
author | Christopher Faylor <me@cgf.cx> | 2010-09-24 19:53:18 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-09-24 19:53:18 +0000 |
commit | 8d07b1aa2b58f286157e329be6f894a7f03d7490 (patch) | |
tree | 1ec9109babd62bdb0996c5de817ffb04f751cead /winsup/cygwin/libc | |
parent | 7438a10a019106738bbec980454a2da738d430ef (diff) | |
download | cygnal-8d07b1aa2b58f286157e329be6f894a7f03d7490.tar.gz cygnal-8d07b1aa2b58f286157e329be6f894a7f03d7490.tar.bz2 cygnal-8d07b1aa2b58f286157e329be6f894a7f03d7490.zip |
* autoload.cc (std_dll_init): Move dll_path closer to its use. Use dll_path in
fatal error. Set ret values under lock control.
* lib/minires.c (res_nsend): Fix compilation errors owing to pointer
signedness.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r-- | winsup/cygwin/libc/minires.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/libc/minires.c b/winsup/cygwin/libc/minires.c index a3d06bff4..725112761 100644 --- a/winsup/cygwin/libc/minires.c +++ b/winsup/cygwin/libc/minires.c @@ -441,8 +441,8 @@ int res_nsend( res_state statp, const unsigned char * MsgPtr, if (statp->os_query) { int len; short int Class, Type; - unsigned char DomName[MAXDNAME]; - unsigned char * ptr = MsgPtr + HFIXEDSZ; + char DomName[MAXDNAME]; + unsigned char * ptr = (unsigned char *) MsgPtr + HFIXEDSZ; len = dn_expand(MsgPtr, MsgPtr + MsgLength, ptr, DomName, sizeof(DomName)); if (len > 0) { ptr += len; |