Remove sscanf() in TetherController.

Test: netd_unit_test, netd_integration_test, libnetd_resolv_test
Change-Id: Ibff2d6cc5dbf4fb09fcd1862be1b71be3b1d9f8e
diff --git a/server/TetherControllerTest.cpp b/server/TetherControllerTest.cpp
index 969cbcd..309a6d5 100644
--- a/server/TetherControllerTest.cpp
+++ b/server/TetherControllerTest.cpp
@@ -428,7 +428,8 @@
 
     // Token unit test of the fact that we return the stats in the error message which the caller
     // ignores.
-    std::string expectedError = counters;
+    // Skip header since we only saved the last line we parsed.
+    std::string expectedError = counterLines[2];
     std::string err = result.status().msg();
     ASSERT_LE(expectedError.size(), err.size());
     EXPECT_TRUE(std::equal(expectedError.rbegin(), expectedError.rend(), err.rbegin()));