mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
Fixed scanf format for WORD = unsigned short.
This commit is contained in:
parent
ef3f1f3146
commit
dafa2fc944
@ -147,7 +147,7 @@ size_t SyncTime_CURL_WriteHeader(void *ptr, size_t size, size_t nmemb,
|
|||||||
TmpStr1 & 2? */
|
TmpStr1 & 2? */
|
||||||
AutoSyncTime = 0;
|
AutoSyncTime = 0;
|
||||||
else {
|
else {
|
||||||
RetVal = sscanf ((char *)(ptr), "Date: %s %d %s %d %d:%d:%d",
|
RetVal = sscanf ((char *)(ptr), "Date: %s %hu %s %hu %hu:%hu:%hu",
|
||||||
TmpStr1, &SYSTime.wDay, TmpStr2, &SYSTime.wYear,
|
TmpStr1, &SYSTime.wDay, TmpStr2, &SYSTime.wYear,
|
||||||
&SYSTime.wHour, &SYSTime.wMinute, &SYSTime.wSecond);
|
&SYSTime.wHour, &SYSTime.wMinute, &SYSTime.wSecond);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user