X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Fedit.c;h=3fc41fb1c34d7c0c42fa42ecaaf8255ce7eb18a5;hp=d30b3caddf787c6a62128899404dbf6be6977f1d;hb=89486c50eaeb8b1cc5a6ff388cb47e859f8565d1;hpb=9353c6253d5fac1648b13ad9958468a2d9f6ad6f diff --git a/fish/edit.c b/fish/edit.c index d30b3ca..3fc41fb 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;