mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
use safe version of sprintf
This commit is contained in:
parent
8da449041c
commit
75c63f53fc
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ void display(void)
|
||||||
float startupTime = (usecTimestampNow() - usecTimestamp(&applicationStartupTime))/1000000.0;
|
float startupTime = (usecTimestampNow() - usecTimestamp(&applicationStartupTime))/1000000.0;
|
||||||
justStarted = false;
|
justStarted = false;
|
||||||
char title[30];
|
char title[30];
|
||||||
sprintf(title, "Interface: %4.2f seconds", startupTime);
|
snprintf(title, 30, "Interface: %4.2f seconds", startupTime);
|
||||||
glutSetWindowTitle(title);
|
glutSetWindowTitle(title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue