SKALE-2002 fix gcc-8 compilation warning

parent a74b2605
...@@ -370,9 +370,9 @@ char* point_compress(point P) ...@@ -370,9 +370,9 @@ char* point_compress(point P)
//Determine if it's odd or even //Determine if it's odd or even
mpz_mod_ui(t1, P->y, 2); mpz_mod_ui(t1, P->y, 2);
if(mpz_cmp_ui(t1, 0)) if(mpz_cmp_ui(t1, 0))
strncpy(result, "02", 2); strncpy(result, "02", 3);
else else
strncpy(result, "03", 2); strncpy(result, "03", 3);
mpz_clear(t1); mpz_clear(t1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment