Roy van Dam / NetworkAPI

Dependents:   NetRelais TCP_Client_Example TCP_Server_Example UDP_Server_Example ... more

Files at this revision

API Documentation at this revision

Comitter:
NegativeBlack
Date:
Sat Nov 15 21:35:31 2014 +0000
Parent:
8:cdee0f2b6ff0
Commit message:
Fixed type warnings in address::formString().

Changed in this revision

ip/address.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ip/address.cpp	Thu Sep 27 09:31:40 2012 +0000
+++ b/ip/address.cpp	Sat Nov 15 21:35:31 2014 +0000
@@ -71,7 +71,7 @@
 Address::fromString(const std::string &address)
 {
     // Decode the ASCI string into integer values.
-    int result = std::sscanf(address.c_str(), "%3u.%3u.%3u.%3u",
+    int result = std::sscanf(address.c_str(), "%3hhu.%3hhu.%3hhu.%3hhu",
         &this->_address[0],
         &this->_address[1],
         &this->_address[2],