mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +03:00
Convert possibly-unsafe sprintf's to snprintf's.
This commit is contained in:
@@ -67,7 +67,7 @@ next_dlsym(void *handle, char *symbol)
|
||||
char symbuf[1024];
|
||||
unsigned long symref = 0;
|
||||
|
||||
sprintf(symbuf, "_%s", symbol);
|
||||
snprintf(symbuf, sizeof(symbuf), "_%s", symbol);
|
||||
if (!rld_lookup(errorStream, symbuf, &symref))
|
||||
TransferError(errorStream);
|
||||
CloseError(errorStream);
|
||||
|
||||
Reference in New Issue
Block a user