Skip to content

Commit 576b4b0

Browse files
committed
Bug fix. Use snprintf() instead of join_path_components to make tmp path
1 parent 0b9650c commit 576b4b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ do_merge(time_t backup_id)
8080
base36enc(backup->start_time), status2str(backup->status));
8181

8282
if (backup->backup_mode == BACKUP_MODE_FULL)
83-
elog(ERROR, "Backup %s if full backup",
83+
elog(ERROR, "Backup %s is full backup",
8484
base36enc(backup->start_time));
8585

8686
dest_backup = backup;
@@ -431,7 +431,7 @@ merge_files(void *arg)
431431
char tmp_file_path[MAXPGPATH];
432432
char *prev_path;
433433

434-
join_path_components(tmp_file_path, to_path_tmp, "_tmp");
434+
snprintf(tmp_file_path, MAXPGPATH, "%s_tmp", to_path_tmp);
435435

436436
/* Start the magic */
437437

0 commit comments

Comments
 (0)