kopia lustrzana https://github.com/rs1729/RS
Fix memset parametrization
rodzic
9731c504d2
commit
5d96cf18ad
|
@ -1707,7 +1707,7 @@ int main(int argc, char **argv) {
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
float _frmcnt = -1.0f;
|
float _frmcnt = -1.0f;
|
||||||
|
|
||||||
memset(buffer_rawhex, BUFLEN+1, 0);
|
memset(buffer_rawhex, 0, BUFLEN+1);
|
||||||
|
|
||||||
while ( (ch=fgetc(fp)) != EOF)
|
while ( (ch=fgetc(fp)) != EOF)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1522,7 +1522,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
while (1 > 0) {
|
while (1 > 0) {
|
||||||
|
|
||||||
memset(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, 0);
|
memset(buffer_rawhex, 0, 2*(FRAME_LEN+AUX_LEN)+12);
|
||||||
pbuf = fgets(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, fp);
|
pbuf = fgets(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, fp);
|
||||||
if (pbuf == NULL) break;
|
if (pbuf == NULL) break;
|
||||||
buffer_rawhex[2*(FRAME_LEN+AUX_LEN)] = '\0';
|
buffer_rawhex[2*(FRAME_LEN+AUX_LEN)] = '\0';
|
||||||
|
|
|
@ -1360,7 +1360,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
while (1 > 0) {
|
while (1 > 0) {
|
||||||
|
|
||||||
memset(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, 0);
|
memset(buffer_rawhex, 0, 2*(FRAME_LEN+AUX_LEN)+12);
|
||||||
pbuf = fgets(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, fp);
|
pbuf = fgets(buffer_rawhex, 2*(FRAME_LEN+AUX_LEN)+12, fp);
|
||||||
if (pbuf == NULL) break;
|
if (pbuf == NULL) break;
|
||||||
buffer_rawhex[2*(FRAME_LEN+AUX_LEN)] = '\0';
|
buffer_rawhex[2*(FRAME_LEN+AUX_LEN)] = '\0';
|
||||||
|
|
|
@ -702,7 +702,7 @@ int main(int argc, char **argv) {
|
||||||
if (!option2 && !option_raw) {
|
if (!option2 && !option_raw) {
|
||||||
jmpRS11:
|
jmpRS11:
|
||||||
if (reset_gpx) {
|
if (reset_gpx) {
|
||||||
memset(&gpx, sizeof(gpx), 0);
|
memset(&gpx, 0, sizeof(gpx));
|
||||||
sn = -1;
|
sn = -1;
|
||||||
freq = -1;
|
freq = -1;
|
||||||
reset_gpx = 0;
|
reset_gpx = 0;
|
||||||
|
@ -867,7 +867,7 @@ int main(int argc, char **argv) {
|
||||||
else if (option2 && !option_raw) { // iMS-100
|
else if (option2 && !option_raw) { // iMS-100
|
||||||
jmpIMS:
|
jmpIMS:
|
||||||
if (reset_gpx) {
|
if (reset_gpx) {
|
||||||
memset(&gpx, sizeof(gpx), 0);
|
memset(&gpx, 0, sizeof(gpx));
|
||||||
gpx.RH = NAN;
|
gpx.RH = NAN;
|
||||||
gpx.T = NAN;
|
gpx.T = NAN;
|
||||||
sn = -1;
|
sn = -1;
|
||||||
|
|
Ładowanie…
Reference in New Issue