patch-deps_xmpp_c_src_jid_c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Index: deps/xmpp/c_src/jid.c
  2. --- deps/xmpp/c_src/jid.c.orig
  3. +++ deps/xmpp/c_src/jid.c
  4. @@ -42,12 +42,12 @@ static ERL_NIF_TERM string_to_usr(ErlNifEnv* env, int
  5. ErlNifBinary input;
  6. ERL_NIF_TERM node, domain, resource;
  7. int cs = 0, ret = 1;
  8. - char *node_start = NULL;
  9. - char *node_end = NULL;
  10. - char *domain_start = NULL;
  11. - char *domain_end = NULL;
  12. - char *resource_start = NULL;
  13. - char *resource_end = NULL;
  14. + signed char *node_start = NULL;
  15. + signed char *node_end = NULL;
  16. + signed char *domain_start = NULL;
  17. + signed char *domain_end = NULL;
  18. + signed char *resource_start = NULL;
  19. + signed char *resource_end = NULL;
  20. if (argc != 1)
  21. return enif_make_badarg(env);
  22. @@ -58,9 +58,9 @@ static ERL_NIF_TERM string_to_usr(ErlNifEnv* env, int
  23. if (!input.size)
  24. return enif_make_atom(env, "error");
  25. - char *p = (char *) input.data;
  26. - char *pe = p + input.size;
  27. - char *eof = pe;
  28. + signed char *p = (signed char *) input.data;
  29. + signed char *pe = p + input.size;
  30. + signed char *eof = pe;
  31. #line 67 "jid.c"