// string when you overwrite it so you follow up with code to replace
// the 0 appended at the end with a '\r'...
char *ptr = strstr(buf, "StartHTML");
// string when you overwrite it so you follow up with code to replace
// the 0 appended at the end with a '\r'...
char *ptr = strstr(buf, "StartHTML");
- sprintf(ptr+10, "%08u", strstr(buf, "<html>") - buf);
+ sprintf(ptr+10, "%08u", (unsigned)(strstr(buf, "<html>") - buf));
- sprintf(ptr+14, "%08u", strstr(buf, "<!--StartFrag") - buf);
+ sprintf(ptr+14, "%08u", (unsigned)(strstr(buf, "<!--StartFrag") - buf));
- sprintf(ptr+12, "%08u", strstr(buf, "<!--EndFrag") - buf);
+ sprintf(ptr+12, "%08u", (unsigned)(strstr(buf, "<!--EndFrag") - buf));