Skip to content

Commit 3b83ec3

Browse files
committed
fmi_import_util: Fix terminalsAndIcons subdir
1 parent 0c2ec5d commit 3b83ec3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Import/src/FMI/fmi_import_util.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jm_status_enu_t fmi_import_rmdir(jm_callbacks* cb, const char* dir) {
3838

3939
char* fmi_import_get_terminals_and_icons_path(const char* fmu_unzipped_path, jm_callbacks* callbacks) {
4040
char* xmlPath;
41-
char* expectedSubDir = "/terminalsAndIcons";
41+
char* expectedSubDir = "terminalsAndIcons";
4242
size_t len = strlen(fmu_unzipped_path) + strlen(FMI_FILE_SEP) + \
43-
strlen(expectedSubDir) + strlen(FMI_TERMINALS_AND_ICONS_XML) + 1;
43+
strlen(expectedSubDir) + strlen(FMI_FILE_SEP) + strlen(FMI_TERMINALS_AND_ICONS_XML) + 1;
4444

4545
xmlPath = (char*)callbacks->calloc(len, sizeof(char));
4646
if (xmlPath == NULL) {
4747
callbacks->logger(NULL, "FMIIMPORTUTIL", jm_log_level_error, "Failed to allocate memory.");
4848
return NULL;
4949
}
5050

51-
jm_snprintf(xmlPath, len, "%s%s%s%s", fmu_unzipped_path,
51+
jm_snprintf(xmlPath, len, "%s%s%s%s", fmu_unzipped_path, FMI_FILE_SEP,
5252
expectedSubDir, FMI_FILE_SEP, FMI_TERMINALS_AND_ICONS_XML);
5353

5454
return xmlPath;

0 commit comments

Comments
 (0)