Skip to content

Commit

Permalink
fixed a Travis NOTLS gcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Aug 8, 2024
1 parent 84d79b4 commit 954e923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -28675,7 +28675,7 @@ _completePullAsync(natsConnection *nc, natsSubscription *sub, natsStatus exitSta
arg->status = exitStatus;
const char *le = nats_GetLastError(NULL);
if (le != NULL)
strncpy(arg->lastErrorBuf, le, sizeof(arg->lastErrorBuf));
strncpy(arg->lastErrorBuf, le, sizeof(arg->lastErrorBuf)-1);
natsCondition_Broadcast(arg->c);
natsMutex_Unlock(arg->m);
}
Expand Down

0 comments on commit 954e923

Please sign in to comment.