2
0

100-c99_scanf.patch 727 B

123456789101112131415161718192021
  1. commit 3b8ca0ce9a0b58287a780747c90c449bdebfe464
  2. Author: Xavier Bestel <bestouff@users.sourceforge.net>
  3. Date: Mon Jan 14 08:52:44 2008 +0000
  4. removed use of %as is scanf (GNU conflicts with C99) by Giacomo Catenazzi <cate@debian.org>
  5. diff --git a/genext2fs.c b/genext2fs.c
  6. index 070b270..f0d797d 100644
  7. --- a/genext2fs.c
  8. +++ b/genext2fs.c
  9. @@ -286,7 +286,9 @@ typedef unsigned int uint32;
  10. // older solaris. Note that this is still not very portable, in that
  11. // the return value cannot be trusted.
  12. -#if SCANF_CAN_MALLOC
  13. +#if 0 // SCANF_CAN_MALLOC
  14. +// C99 define "a" for floating point, so you can have runtime surprise
  15. +// according the library versions
  16. # define SCANF_PREFIX "a"
  17. # define SCANF_STRING(s) (&s)
  18. #else