comparison cli-session.c @ 1789:249681d9ecda

Use buf_eatstring instead
author Matt Johnston <matt@ucc.asn.au>
date Thu, 10 Dec 2020 23:18:48 +0800
parents 1fc0012b9c38
children df8d8ec1801c 7a0068effc65
comparison
equal deleted inserted replaced
1788:1fc0012b9c38 1789:249681d9ecda
406 /* Null terminate */ 406 /* Null terminate */
407 dirtytext[j] = '\0'; 407 dirtytext[j] = '\0';
408 } 408 }
409 409
410 static void recv_msg_global_request_cli(void) { 410 static void recv_msg_global_request_cli(void) {
411 unsigned int len = 0;
412 unsigned int wantreply = 0; 411 unsigned int wantreply = 0;
413 412
414 len = buf_getint(ses.payload); 413 buf_eatstring(ses.payload);
415 buf_incrpos(ses.payload, len);
416 wantreply = buf_getbool(ses.payload); 414 wantreply = buf_getbool(ses.payload);
417 415
418 TRACE(("recv_msg_global_request_cli: want_reply: %u", wantreply)); 416 TRACE(("recv_msg_global_request_cli: want_reply: %u", wantreply));
419 417
420 if (wantreply) { 418 if (wantreply) {