mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[apps] Fix StorageFunction::nameWithArgument return value
This commit is contained in:
@@ -41,7 +41,7 @@ int StorageFunction::nameWithArgument(char * buffer, size_t bufferSize, char arg
|
||||
assert(functionName < fullName() + strlen(fullName()));
|
||||
buffer[index++] = *functionName++;
|
||||
}
|
||||
return index - 1 + strlcpy(&buffer[index], ofXSring, bufferSize);
|
||||
return index + strlcpy(&buffer[index], ofXSring, bufferSize-index);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user