aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-02-27 10:51:17 -0800
committerMichael Forney <mforney@mforney.org>2017-02-27 11:19:24 -0800
commite4380da4a62b43e6b0848f08fbf6162d0c0a11cd (patch)
tree7df6906c36a3469e91376acf2c95edfa805c6b91
parentda859e4c5d97d3ac38587f5d5ea5ea013b6f3808 (diff)
downloadvis-e4380da4a62b43e6b0848f08fbf6162d0c0a11cd.tar.gz
vis-e4380da4a62b43e6b0848f08fbf6162d0c0a11cd.tar.xz
Fix a couple typos
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index b8d5d90..5a7d907 100644
--- a/text.c
+++ b/text.c
@@ -965,7 +965,7 @@ static bool text_save_begin_inplace(TextSave *ctx) {
txt->block->type = MMAP;
newfd = -1;
}
- /* overwrite the exisiting file content, if somehting goes wrong
+ /* overwrite the existing file content, if something goes wrong
* here we are screwed, TODO: make a backup before? */
if (ftruncate(ctx->fd, 0) == -1)
goto err;