X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72d32c4e88a57f4786f62fec48a1bfa454adbff9..cd5185ae774cc99650b6cae2dca17b6062accea3:/src/xbt/memory_map.cpp?ds=sidebyside diff --git a/src/xbt/memory_map.cpp b/src/xbt/memory_map.cpp index 90e5c5f5d5..2d54b6aee8 100644 --- a/src/xbt/memory_map.cpp +++ b/src/xbt/memory_map.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -202,7 +202,7 @@ std::vector get_memory_map(pid_t pid) #elif defined __linux__ /* Open the actual process's proc maps file and create the memory_map_t */ /* to be returned. */ - std::string path = std::string("/proc/") + std::to_string(pid) + "/maps"; + std::string path = "/proc/" + std::to_string(pid) + "/maps"; std::ifstream fp; fp.rdbuf()->pubsetbuf(nullptr, 0); fp.open(path);