Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Unified Diff: remoting/base/util.cc

Issue 13642007: Rewrite scoped_array<T> to scoped_ptr<T[]> in remoting/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually rewrite Win files. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/compound_buffer_unittest.cc ('k') | remoting/base/util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.cc
diff --git a/remoting/base/util.cc b/remoting/base/util.cc
index 53b121352954d103a343ea887626e2abce36d110..66a70eae537ada3877bc9883cfe463576b23a4a8 100644
--- a/remoting/base/util.cc
+++ b/remoting/base/util.cc
@@ -322,7 +322,7 @@ std::string GetUsername() {
long buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);
if (buf_size <= 0)
return std::string();
- scoped_array<char> buf(new char[buf_size]);
+ scoped_ptr<char[]> buf(new char[buf_size]);
struct passwd passwd;
struct passwd* passwd_result = NULL;
getpwuid_r(getuid(), &passwd, buf.get(), buf_size, &passwd_result);
« no previous file with comments | « remoting/base/compound_buffer_unittest.cc ('k') | remoting/base/util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698