13
0

Replace non-portable printf format specifier

This caused Diskstream state to be restored incorrectly
This commit is contained in:
Tim Mayberry 2013-12-02 19:57:51 +10:00
parent f74521b0cd
commit 4a1b43b9d5

View File

@ -1789,7 +1789,7 @@ AudioDiskstream::get_state ()
LocaleGuard lg (X_("POSIX"));
boost::shared_ptr<ChannelList> c = channels.reader();
snprintf (buf, sizeof(buf), "%zd", c->size());
snprintf (buf, sizeof(buf), "%d", c->size());
node.add_property ("channels", buf);
if (!capturing_sources.empty() && _session.get_record_enabled()) {