Cast in fprintf to remove warning on possible size mismatch
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@860 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
8d0cdd937c
commit
d1f4417c99
|
@ -575,7 +575,7 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char msg[], size_t maxsize)
|
||||||
msg[curlen] = c;
|
msg[curlen] = c;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %u byte buffer\n",
|
fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %u byte buffer\n",
|
||||||
progname,curlen,maxsize);
|
progname,curlen,(unsigned int)maxsize);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
if ((curlen == 0) && (msg[0] == ANSWER_CKSUM_ERROR)) {
|
if ((curlen == 0) && (msg[0] == ANSWER_CKSUM_ERROR)) {
|
||||||
|
|
Loading…
Reference in New Issue