X-Git-Url: http://pileus.org/git/?p=~andy%2Frsl;a=blobdiff_plain;f=rapic.y;h=b10475702322bc9e593b5c22a8b27fa64ab25413;hp=0c99d1234edb2dc4ac93343f9a488403736a8e43;hb=71c71381ace86eb987172b22de55fbb837518b26;hpb=d08a7f8a699a044bc4ac5f93917aa7f6c463923b diff --git a/rapic.y b/rapic.y index 0c99d12..b104757 100644 --- a/rapic.y +++ b/rapic.y @@ -327,7 +327,7 @@ float rapic_nyquist; Charlen token; } -%expect 59 +%expect 61 %% @@ -463,7 +463,7 @@ ray : RAYDATA RSL_ftype[0] = RSL_ftype[0]; /* Use yylval.token.s and yylval.token.len */ - memset(outbuf, sizeof(outbuf), '\0'); + memset(outbuf, '\0', sizeof(outbuf)); rapic_decode((unsigned char *)yylval.token.s, yylval.token.len, outbuf, &outbytes, &azim, &elev, &delta_time); /* fprintf(stderr, "RAYDATA: ray %d, ivol %d, isweep %d, azim %f, elev %f, dtime %d, size=%d\n", nray, ivolume, isweep, azim, elev, delta_time, outbytes); */