Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/libc/minires.c')
-rw-r--r--winsup/cygwin/libc/minires.c4
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;