Created
October 14, 2021 21:20
-
-
Save neheb/d1be9051a40807d45f99c8a3b2b587a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/wsd.c | |
+++ b/wsd.c | |
@@ -532,7 +532,7 @@ static int wsd_send_soap_msg(int fd, struct endpoint *ep, | |
"<wsa:To>%s</wsa:To>" | |
"<wsa:Action>%s</wsa:Action>" | |
"<wsa:MessageID>urn:uuid:%s</wsa:MessageID>" | |
- "<wsd:AppSequence InstanceId=\"%lu\" SequenceId=\"urn:uuid:%s\" " | |
+ "<wsd:AppSequence InstanceId=\"%lld\" SequenceId=\"urn:uuid:%s\" " | |
"MessageNumber=\"%u\" />" | |
"%s" | |
"</soap:Header>" | |
@@ -559,7 +559,7 @@ static int wsd_send_soap_msg(int fd, struct endpoint *ep, | |
} | |
ssize_t msglen = asprintf(&msg, soap_msg_templ, to, action, msg_id, | |
- wsd_instance, wsd_sequence, | |
+ (long long)wsd_instance, wsd_sequence, | |
++msg_no, soap_relates, | |
body); | |
free(soap_relates); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment