1
0
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:
Tom Lane
2002-08-12 14:47:46 +00:00
parent b47c4ddc7f
commit 1ccc2451c6
4 changed files with 28 additions and 16 deletions

View File

@@ -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);