folly: fix string truncation warning in LockFreeRingBufferTest
Summary:
```
folly/experimental/test/LockFreeRingBufferTest.cpp:279:14: error
: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 1023 bytes from a string of length 1023 [-Werror=stringop-truncation]
strncpy(data_, data.data_, sizeof(data_) - 1);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Reviewed By: yfeldblum
Differential Revision: D14702561
fbshipit-source-id: 8f85c758c7afc99eeb1f95920511fb4195eafbbe
Showing
Please register or sign in to comment