=================================================================== RCS file: /cvs/djgpp/djgpp/src/libc/dos/process/dosexec.c,v retrieving revision 1.27 retrieving revision 1.28 diff -p -u -r1.27 -r1.28 --- djgpp/src/libc/dos/process/dosexec.c 2015/05/02 07:32:23 1.27 +++ /cvs/djgpp/djgpp/src/libc/dos/process/dosexec.c 2017/05/07 16:49:19 1.28 @@ -406,7 +406,7 @@ direct_exec_tail_1 (const char *program, if ((initial_tbuf_selector != tbuf_selector) && proxy_off) { char temp[65], *s, t2[5]; - sprintf (t2, "%04lX", tbuf_beg>>4); + sprintf (t2, "%04X", (unsigned short)(tbuf_beg>>4)); dosmemget (tbuf_beg+proxy_off, 64, temp); temp[64] = 0; s = strchr(temp,'\r'); @@ -1107,9 +1107,9 @@ static int go32_exec(const char *program proxy_cmdline = (char *)alloca (34); sprintf(proxy_cmdline, "%s=%04x %04x %04x %04x %04x", - __PROXY, argc, - (unsigned)(tbuf_beg >> 4), rm_off & 0xffff, - (unsigned)(tbuf_beg >> 4), si_off & 0xffff); + __PROXY, (unsigned short)argc, + (unsigned short)(tbuf_beg >> 4), (unsigned short)(rm_off & 0xffff), + (unsigned short)(tbuf_beg >> 4), (unsigned short)(si_off & 0xffff)); if (!found_si) proxy_cmdline[22] = 0; /* remove stubinfo information */