diff options
Diffstat (limited to 'src/timezone/pgtz.c')
| -rw-r--r-- | src/timezone/pgtz.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c index 8a3c53f27ac..3c161df15af 100644 --- a/src/timezone/pgtz.c +++ b/src/timezone/pgtz.c @@ -83,7 +83,7 @@ pg_open_tzfile(const char *name, char *canonname)  	 * Loop to split the given name into directory levels; for each level,  	 * search using scan_directory_ci().  	 */ -	strcpy(fullname, pg_TZDIR()); +	strlcpy(fullname, pg_TZDIR(), sizeof(fullname));  	orignamelen = fullnamelen = strlen(fullname);  	fname = name;  	for (;;) | 
