Changeset 13402


Ignore:
Timestamp:
2012-10-16T14:33:45+02:00 (12 years ago)
Author:
perost
Message:
  • Apparently strndup is not supported by mingw, use strdup instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/runtime/FMIImpl.c

    r13401 r13402  
    154154
    155155/*
    156  * Reads the model variable base type.
     156 * Reads the model variable name. Returns a malloc'd string that should be
     157 * free'd.
    157158 */
    158159char* getModelVariableName(fmi1_import_variable_t* variable)
    159160{
    160161  const char* name = fmi1_import_get_variable_name(variable);
    161   int length = strlen(name);
    162   char* res = strndup(name, length);
     162  char* res = strdup(name);
     163  int length = strlen(res);
    163164
    164165  charReplace(res, length, '.', '_');
Note: See TracChangeset for help on using the changeset viewer.