expect-5.43.0-fixformatsecurity.patch 638 B

12345678910111213141516171819202122232425262728
  1. From 200f54ec3498c9d53c530b863ee43b42ff258fea Mon Sep 17 00:00:00 2001
  2. From: Frederic Crozat <fcrozat@mandriva.com>
  3. Date: Thu, 5 Mar 2009 11:44:35 +0100
  4. Subject: [PATCH] Fix format security
  5. ---
  6. exp_clib.c | 4 ++--
  7. 1 files changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/exp_clib.c b/exp_clib.c
  9. index 79e6309..1ae6073 100644
  10. --- a/exp_clib.c
  11. +++ b/exp_clib.c
  12. @@ -1936,8 +1936,8 @@ expDiagLogU(str)
  13. char *str;
  14. {
  15. if (exp_is_debugging) {
  16. - fprintf(stderr,str);
  17. - if (exp_logfile) fprintf(exp_logfile,str);
  18. + fprintf(stderr,"%s",str);
  19. + if (exp_logfile) fprintf(exp_logfile,"%s",str);
  20. }
  21. }
  22. --
  23. 1.6.1.3