Skip to content

Commit 732919b

Browse files
committed
shmen.cc: Revert a mistaken srrncmp->rtapi_srtlcpy change,
1 parent 0dafbd6 commit 732919b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libnml/buffer/shmem.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ int SHMEM::open()
316316
if (!shm->created) {
317317
char *cptr = (char *) shm->addr;
318318
cptr[31] = 0;
319-
if (rtapi_strlcpy(cptr, BufferName, 31)) {
319+
if (strncmp(cptr, BufferName, 31)) {
320320
rcs_print_error
321321
("Shared memory buffers %s and %s may conflict. (key=%d(0x%X))\n",
322322
BufferName, cptr, key, key);

0 commit comments

Comments
 (0)