diff options
Diffstat (limited to 'fish/edit.c')
-rw-r--r-- | fish/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/edit.c b/fish/edit.c index d30b3cad..3fc41fb1 100644 --- a/fish/edit.c +++ b/fish/edit.c @@ -149,7 +149,7 @@ do_edit (const char *cmd, int argc, char *argv[]) unlink (filename); /* Changed? */ - if (strlen (content) == size && strncmp (content, content_new, size) == 0) { + if (strlen (content) == size && STREQLEN (content, content_new, size)) { free (content); free (content_new); return 0; |