Skip to content

Commit

Permalink
Switch to sizeof
Browse files Browse the repository at this point in the history
  • Loading branch information
save-buffer committed Nov 7, 2023
1 parent 8269ce9 commit 08446a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxn/neon/libpagestore.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ReloadConnstring()
if(!pagestore_shared)
return;
LWLockAcquire(pagestore_shared->lock, LW_SHARED);
strlcpy(local_pageserver_connstring, pagestore_shared->pageserver_connstring, MAX_PAGESERVER_CONNSTRING_SIZE);
strlcpy(local_pageserver_connstring, pagestore_shared->pageserver_connstring, sizeof(local_pageserver_connstring));
pagestore_local_counter = pg_atomic_read_u64(&pagestore_shared->update_counter);
LWLockRelease(pagestore_shared->lock);
}
Expand Down

0 comments on commit 08446a7

Please sign in to comment.