Skip to content

Commit 028c9b7

Browse files
committed
Small fix for win
1 parent 63e7147 commit 028c9b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Include/IMediaRessourceVectorInterface.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,10 +1782,12 @@ class DYNAMIC_ATTRIBUTE IGdtfMacro : public IVWUnknown
17821782

17831783
MVRxchangeString& operator=(const char* str)
17841784
{
1785+
#ifdef _WINDOWS
17851786
#pragma warning(push) // Save the current warning state
17861787
#pragma warning(disable : 4996) // Disable strncpy warning
17871788
std::strncpy(fBuffer, str, 1024);
17881789
#pragma warning(pop)
1790+
#endif
17891791

17901792
fBuffer[1023] = '\0'; // In case str is longer than 1024, no terminator is set by strncpy
17911793
return *this;

0 commit comments

Comments
 (0)