Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. --- libmariadb/dbug.c 2014-04-04 04:21:01.000000000 -0600
  2. +++ libmariadb/dbug.c 2015-01-24 16:47:13.316693150 -0700
  3. @@ -2050,11 +2050,7 @@
  4. }
  5. else
  6. {
  7. -#ifdef _WIN32
  8. - if (fopen_s(&fp, name, append ? "a+" : "w"))
  9. -#else
  10. if (!(fp= fopen(name, append ? "a+" : "w")))
  11. -#endif
  12. {
  13. (void) fprintf(stderr, ERR_OPEN, cs->process, name);
  14. perror("");
  15. --- libmariadb/my_fopen.c 2014-04-04 04:21:01.000000000 -0600
  16. +++ libmariadb/my_fopen.c 2015-01-24 16:46:10.735766900 -0700
  17. @@ -36,11 +36,7 @@
  18. FileName, Flags, MyFlags));
  19.  
  20. make_ftype(type,Flags);
  21. -#ifdef _WIN32
  22. - if (fopen_s(&fd, FileName, type) == 0)
  23. -#else
  24. if ((fd = fopen(FileName, type)) != 0)
  25. -#endif
  26. {
  27. /*
  28. The test works if MY_NFILE < 128. The problem is that fileno() is char
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement