Fix gcc 7 warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]

This commit is contained in:
Fl0-0 2017-09-26 16:13:52 +02:00
commit 7a9b03cca6

View file

@ -606,7 +606,7 @@ int EM4x50Read(const char *Cmd, bool verbose)
char tmp2[20];
int phaseoff;
high = low = 0;
memset(tmpbuff, 0, MAX_GRAPH_TRACE_LEN / 64);
memset(tmpbuff, 0, sizeof(tmpbuff));
// get user entry if any
sscanf(Cmd, "%i %i", &clk, &invert);