summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Joni <alex_joni@users.sourceforge.net>2013-10-20 16:03:14 -0700
committerKim Kirwan <Kim@KimKirwan.com>2013-10-20 19:12:39 -0500
commit59adbb1ff2db228e424d3ab81b312907df43cf32 (patch)
tree6ef2257af262ccb4d269a17346e16aa8fc001184
parent0d30656398c0be65fd46c84bb475662c84ca9667 (diff)
downloadlinuxcnc-59adbb1ff2db228e424d3ab81b312907df43cf32.tar.gz
linuxcnc-59adbb1ff2db228e424d3ab81b312907df43cf32.zip
fix typo, preventing remote NML clients talking to lcncserver
Signed-off-by: Alex Joni <alex_joni@users.sourceforge.net> Signed-off-by: Kim Kirwan <Kim@KimKirwan.com>
-rw-r--r--src/libnml/buffer/tcpmem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnml/buffer/tcpmem.cc b/src/libnml/buffer/tcpmem.cc
index 23ffa474a..2520ac978 100644
--- a/src/libnml/buffer/tcpmem.cc
+++ b/src/libnml/buffer/tcpmem.cc
@@ -207,8 +207,8 @@ void TCPMEM::verify_bufname()
set_socket_fds(read_socket_fd);
putbe32(temp_buffer, (uint32_t) serial_number);
- putbe32(temp_buffer + 1, REMOTE_CMS_GET_BUF_NAME_REQUEST_TYPE);
- putbe32(temp_buffer + 2, buffer_number);
+ putbe32(temp_buffer + 4, REMOTE_CMS_GET_BUF_NAME_REQUEST_TYPE);
+ putbe32(temp_buffer + 8, buffer_number);
if (sendn(socket_fd, temp_buffer, 20, 0, timeout) < 0) {
reconnect_needed = 1;
fatal_error_occurred = 1;