Avoid warnings from the clang compiler. (Dominique Pelle)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 20a39ff..f78bf96 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2080,9 +2080,9 @@
/* Write the info: */
fprintf(fp_out, _("# This viminfo file was generated by Vim %s.\n"),
VIM_VERSION_MEDIUM);
- fprintf(fp_out, _("# You may edit it if you're careful!\n\n"));
+ fputs(_("# You may edit it if you're careful!\n\n"), fp_out);
#ifdef FEAT_MBYTE
- fprintf(fp_out, _("# Value of 'encoding' when this file was written\n"));
+ fputs(_("# Value of 'encoding' when this file was written\n"), fp_out);
fprintf(fp_out, "*encoding=%s\n\n", p_enc);
#endif
write_viminfo_search_pattern(fp_out);
@@ -5422,7 +5422,7 @@
{
if (get_viminfo_parameter('/') != 0 && old_sub != NULL)
{
- fprintf(fp, _("\n# Last Substitute String:\n$"));
+ fputs(_("\n# Last Substitute String:\n$"), fp);
viminfo_writestring(fp, old_sub);
}
}