File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Server/Components/CAPI/Impl Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -239,20 +239,20 @@ inline PlayerDataType* GetPlayerData(IPlayer* player)
239239 return failret
240240
241241#define COPY_STRING_TO_CAPI_STRING_BUFFER (output, src, len_ ) \
242- if (output) \
243- { \
244- if (output->data && output->capacity >= len_) \
245- { \
246- if (len_ && src) \
247- { \
248- output->len = len_; \
249- memcpy (output->data , src, uint32_t (len_)); \
250- } \
251- if (output->capacity > len_) \
252- { \
253- output->data [len_] = ' \0 ' ; \
254- } \
255- } \
242+ if (output) \
243+ { \
244+ if (output->data && output->capacity >= len_) \
245+ { \
246+ if (len_ && src) \
247+ { \
248+ output->len = len_; \
249+ memcpy (output->data , src, uint32_t (len_)); \
250+ } \
251+ if (output->capacity > len_) \
252+ { \
253+ output->data [len_] = ' \0 ' ; \
254+ } \
255+ } \
256256 }
257257
258258#define SET_CAPI_STRING_VIEW (output, str_view ) \
You can’t perform that action at this time.
0 commit comments