diff options
author | Michael Santos <[email protected]> | 2011-04-05 20:45:17 -0400 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-04-06 15:24:09 +0200 |
commit | fa8456a96f099b4aa878b6cea7e3fef0e6da1e63 (patch) | |
tree | b0d9a8e625a062ce5b9936a1ea086798c7b64aff /system/doc | |
parent | d8dcd70f386de09109ca1f6f817a381cd1387769 (diff) | |
download | otp-fa8456a96f099b4aa878b6cea7e3fef0e6da1e63.tar.gz otp-fa8456a96f099b4aa878b6cea7e3fef0e6da1e63.tar.bz2 otp-fa8456a96f099b4aa878b6cea7e3fef0e6da1e63.zip |
heart: remove garbage appended to heart command
heart:get_cmd/0 is documented to return an empty string if the command is
cleared. get_cmd/0 returns 2 extra bytes: 1 byte for the trailing null,
1 byte from the op (the op is an unsigned char and 2 bytes are allocated
for it in the returned buffer).
1> heart:get_cmd().
{ok,[0,0]}
2> heart:set_cmd("echo hello").
ok
3> heart:get_cmd().
{ok,[101,99,104,111,32,104,101,108,108,111,0,0]}
4> heart:clear_cmd().
ok
5> heart:get_cmd().
{ok,[0,99]}
Diffstat (limited to 'system/doc')
0 files changed, 0 insertions, 0 deletions