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
39653cb958
commit
42c2863662
|
@ -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