From 4ff217812014695e6a26a519062c4a2feba22ab0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 15 Oct 2007 00:42:57 +0000 Subject: [PATCH] Adjusted due to API changes. It compiles again, but won't work for a while. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22562 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/apps/partitioner/Partitioner.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/apps/partitioner/Partitioner.cpp b/src/tests/apps/partitioner/Partitioner.cpp index c399a94ab8..b4b91e3af6 100644 --- a/src/tests/apps/partitioner/Partitioner.cpp +++ b/src/tests/apps/partitioner/Partitioner.cpp @@ -384,10 +384,9 @@ private: } // validate parameters - char validatedName[B_OS_NAME_LENGTH]; - strlcpy(validatedName, name.String(), sizeof(validatedName)); + BString validatedName(name); if (partition->ValidateInitialize(diskSystem->Name(), - supportsName ? validatedName : NULL, parameters.String()) + supportsName ? &validatedName : NULL, parameters.String()) != B_OK) { printf("Validation of the given values failed. Sorry, can't " "continue.\n"); @@ -399,7 +398,7 @@ private: printf("Everything looks dandy.\n"); } else { printf("The disk system adjusted the file name to \"%s\".\n", - validatedName); + validatedName.String()); name = validatedName; } @@ -588,7 +587,8 @@ private: // validate parameters off_t validatedStart = start; off_t validatedSize = size; - if (partition->ValidateCreateChild(&start, &size, type, +// TODO: Support the name parameter! + if (partition->ValidateCreateChild(&start, &size, type, NULL, parameters.String()) != B_OK) { printf("Validation of the given values failed. Sorry, can't " "continue.\n"); @@ -633,7 +633,7 @@ private: } // create child - error = partition->CreateChild(start, size, type, + error = partition->CreateChild(start, size, type, NULL, parameters.String()); if (error != B_OK) printf("Creating the partiiton failed: %s\n", strerror(error));