• Wez Furlong's avatar
    folly: fix string truncation warning in LockFreeRingBufferTest · c6ad789e
    Wez Furlong authored
    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
    c6ad789e
LockFreeRingBufferTest.cpp 8.19 KB