summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/shell_integration_linux.cc')
-rw-r--r--chrome/browser/shell_integration_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 8ecc0da..ea38c57 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -54,7 +54,8 @@ bool GetDesktopShortcutTemplate(std::string* output) {
const char* xdg_data_dirs = getenv("XDG_DATA_DIRS");
if (xdg_data_dirs) {
- StringTokenizer tokenizer(xdg_data_dirs, ":");
+ CStringTokenizer tokenizer(xdg_data_dirs,
+ xdg_data_dirs + strlen(xdg_data_dirs), ":");
while (tokenizer.GetNext()) {
search_paths.push_back(tokenizer.token());
}