OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A library to manage RLZ information for access-points shared | 5 // A library to manage RLZ information for access-points shared |
6 // across different client applications. | 6 // across different client applications. |
7 | 7 |
8 #include "rlz/lib/rlz_lib.h" | 8 #include "rlz/lib/rlz_lib.h" |
9 | 9 |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 if (cgi_string.size() >= cgi_size) | 642 if (cgi_string.size() >= cgi_size) |
643 return false; | 643 return false; |
644 | 644 |
645 strncpy(cgi, cgi_string.c_str(), cgi_size); | 645 strncpy(cgi, cgi_string.c_str(), cgi_size); |
646 cgi[cgi_size - 1] = 0; | 646 cgi[cgi_size - 1] = 0; |
647 | 647 |
648 return true; | 648 return true; |
649 } | 649 } |
650 | 650 |
651 } // namespace rlz_lib | 651 } // namespace rlz_lib |
OLD | NEW |