NasalTimers; ensure unique name as this is required to identify the timer for certain operations (e.g. stop)
This commit is contained in:
parent
d2a179f1f3
commit
d3ce7adc95
1 changed files with 2 additions and 2 deletions
|
@ -99,9 +99,9 @@ public:
|
|||
_self(self),
|
||||
_interval(interval)
|
||||
{
|
||||
char nm[128];
|
||||
char nm[256];
|
||||
if (c) {
|
||||
snprintf(nm, 128, "maketimer-%s:%d", naStr_data(naGetSourceFile(c, 0)), naGetLine(c, 0));
|
||||
snprintf(nm, 128, "maketimer-[%p]-%s:%d", (void*)this, naStr_data(naGetSourceFile(c, 0)), naGetLine(c, 0));
|
||||
}
|
||||
else {
|
||||
snprintf(nm, 128, "maketimer-%p", this);
|
||||
|
|
Loading…
Add table
Reference in a new issue