Learners prints gibberish

Issue #3 closed
Ehsan Aerabi created an issue

This is a minor issue concerning how learner handles the pointer of the received data from a replica or a receiver.

Learner prints the value but the output is gibberish.

The issue comes from printing the char *value which contains the received data in deliver function in learner.c . * value* is a struct comprised of time,size and accepted value. Accepted value located 12 bytes from the beginning of the struct. So this is just enough to print like this: printf("Delivered value size: %s\n", value+12);

"Thanks to Paulo Rodolfo S. L. Coelho who found the solution."

Comments (7)

  1. Log in to comment