mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
fix compiler warning (entirely justified) about use of strncpy()
This commit is contained in:
parent
ec7b756d90
commit
7b3fa14231
1 changed files with 2 additions and 2 deletions
|
|
@ -793,10 +793,10 @@ lrdf_remove_preset (const char* /*source*/, const char *setting_uri)
|
|||
lrdf_statement p;
|
||||
lrdf_statement *q;
|
||||
lrdf_statement *i;
|
||||
char setting_uri_copy[64];
|
||||
char setting_uri_copy[65];
|
||||
char buf[64];
|
||||
|
||||
strncpy(setting_uri_copy, setting_uri, sizeof(setting_uri_copy));
|
||||
strncpy(setting_uri_copy, setting_uri, sizeof(setting_uri_copy) - 1);
|
||||
|
||||
p.subject = setting_uri_copy;
|
||||
strncpy(buf, LADSPA_BASE "hasPortValue", sizeof(buf));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue