about summary refs log tree commit diff stats
path: root/history.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-01-24 15:16:57 -0600
committerMarco Peereboom <marco@conformal.com>2012-01-24 15:16:57 -0600
commitd687d46316edad2fbd5d2a6c1357b9dc5900ee62 (patch)
treeab7302e230a033acb16e4a2a7e2171fd1c77fe4f /history.c
parent3744fef66ef58af9ea56286637efef0e2e4d0101 (diff)
downloadxombrero-d687d46316edad2fbd5d2a6c1357b9dc5900ee62.tar.gz
also fixup PS over here
Diffstat (limited to 'history.c')
-rw-r--r--history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/history.c b/history.c
index 04430e0..a536275 100644
--- a/history.c
+++ b/history.c
@@ -99,7 +99,7 @@ restore_global_history(void)
 	struct tm		tm;
 	const char		delim[3] = {'\\', '\\', '\0'};
 
-	snprintf(file, sizeof file, "%s/%s", work_dir, XT_HISTORY_FILE);
+	snprintf(file, sizeof file, "%s" PS "%s", work_dir, XT_HISTORY_FILE);
 
 	if ((f = fopen(file, "r")) == NULL) {
 		warnx("%s: fopen", __func__);
@@ -163,7 +163,7 @@ save_global_history_to_disk(struct tab *t)
 	FILE			*f;
 	struct history		*h;
 
-	snprintf(file, sizeof file, "%s/%s", work_dir, XT_HISTORY_FILE);
+	snprintf(file, sizeof file, "%s" PS "%s", work_dir, XT_HISTORY_FILE);
 
 	if ((f = fopen(file, "w")) == NULL) {
 		show_oops(t, "%s: global history file: %s",