aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2018-03-27 10:56:48 +0300
committerWohlstand <admin@wohlnet.ru>2018-03-27 10:56:48 +0300
commitc8a48a8bd0cd272ef67fb1fed992457395b99df2 (patch)
treefe76d293c655cebc08e5924304679c86c241da1a /src/adlmidi.cpp
parent24c65adef68dce035398cb311a59885b6362fff7 (diff)
downloadlibADLMIDI-c8a48a8bd0cd272ef67fb1fed992457395b99df2.tar.gz
libADLMIDI-c8a48a8bd0cd272ef67fb1fed992457395b99df2.tar.bz2
libADLMIDI-c8a48a8bd0cd272ef67fb1fed992457395b99df2.zip
Remove std:: from all snprintf calls
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 586cb90..db97447 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -108,7 +108,7 @@ ADLMIDI_EXPORT int adl_setBank(ADL_MIDIPlayer *device, int bank)
if(static_cast<uint32_t>(bankno) >= NumBanks)
{
char errBuf[150];
- std::snprintf(errBuf, 150, "Embedded bank number may only be 0..%u!\n", (NumBanks - 1));
+ snprintf(errBuf, 150, "Embedded bank number may only be 0..%u!\n", (NumBanks - 1));
play->setErrorString(errBuf);
return -1;
}
@@ -139,7 +139,7 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4)
if((unsigned int)ops4 > 6 * play->m_setup.NumCards)
{
char errBuff[250];
- std::snprintf(errBuff, 250, "number of four-op channels may only be 0..%u when %u OPL3 cards are used.\n", (6 * (play->m_setup.NumCards)), play->m_setup.NumCards);
+ snprintf(errBuff, 250, "number of four-op channels may only be 0..%u when %u OPL3 cards are used.\n", (6 * (play->m_setup.NumCards)), play->m_setup.NumCards);
play->setErrorString(errBuff);
return -1;
}