Remove disabled queries from output_spec.cfg
[ric-app/mc.git] / mc-core / mc / mcnib / gsprintconsole_ves.c
index 75dccb0..62a9789 100644 (file)
@@ -242,7 +242,7 @@ int main(int argc, char* argv[]) {
                        curl_endpoint.ip=htonl(tip1<<24|tip2<<16|tip3<<8|tip4);
                        curl_endpoint.port=htons(curl_endpoint.port);
                                break;
-                       case 'R':
+            case 'R':
                 rmr_port=strdup(optarg);
                 break;
             case 'U':
@@ -687,7 +687,8 @@ int main(int argc, char* argv[]) {
 
             if (rmr_port) {
                 rmr_sbuf->mtype = rmr_mtype;                                                   // fill in the message bits
-                rmr_sbuf->len =  strlen(linebuf) + 1;          // our receiver likely wants a nice acsii-z string
+               rmr_sbuf->len =  strlen(linebuf) + 1;           // our receiver likely wants a nice acsii-z string
+               memcpy(rmr_sbuf->payload, linebuf, rmr_sbuf->len);
                 rmr_sbuf->state = 0;
                 rmr_sbuf = rmr_send_msg( mrc, rmr_sbuf);                               // send it (send returns an empty payload on success, or the original payload on fail/retry)
                 while( rmr_sbuf->state == RMR_ERR_RETRY ) {                    // soft failure (device busy?) retry