Output 16 digits after decimal for doubles in protocol.

This commit is contained in:
Michael Jumper 2012-11-13 11:46:34 -08:00
parent 60fbdf148b
commit c25683783e

View File

@ -83,7 +83,7 @@ ssize_t __guac_socket_write_length_int(guac_socket* socket, int64_t i) {
ssize_t __guac_socket_write_length_double(guac_socket* socket, double d) {
char buffer[128];
snprintf(buffer, sizeof(buffer), "%g", d);
snprintf(buffer, sizeof(buffer), "%.16g", d);
return __guac_socket_write_length_string(socket, buffer);
}