Reviewers: plesner,

Description:
Change sscanf to atoi in test-debug.cc to make lint happy.

Please review this at http://codereview.chromium.org/264033

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     test/cctest/test-debug.cc


Index: test/cctest/test-debug.cc
===================================================================
--- test/cctest/test-debug.cc   (revision 3048)
+++ test/cctest/test-debug.cc   (working copy)
@@ -3567,7 +3567,7 @@
      return -1;
    }
    int res = -1;
-  sscanf(pos + strlen(value), "%d", &res);
+  res = atoi(pos + strlen(value));
    return res;
  }

@@ -3580,7 +3580,7 @@
      return -1;
    }
    int res = -1;
-  sscanf(pos + strlen(breakpoints), "%d", &res);
+  res = atoi(pos + strlen(breakpoints));
    return res;
  }




--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to