mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53:03 +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;
|
||||
justStarted = false;
|
||||
char title[30];
|
||||
sprintf(title, "Interface: %4.2f seconds", startupTime);
|
||||
snprintf(title, 30, "Interface: %4.2f seconds", startupTime);
|
||||
glutSetWindowTitle(title);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue