Skip to content

Commit

Permalink
Fix issues found by cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 21, 2014
1 parent 2820e93 commit 337103e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/detail.c
Expand Up @@ -456,7 +456,6 @@ int detail_recv(rad_listen_t *listener)
}

DEBUG("No response to detail request. Retrying");
data->state = STATE_NO_REPLY;
/* FALL-THROUGH */

/*
Expand Down Expand Up @@ -526,7 +525,7 @@ int detail_recv(rad_listen_t *listener)
*
* FIXME: print an error for badly formatted attributes?
*/
if (sscanf(buffer, "%255s %8s %1023s", key, op, value) != 3) {
if (sscanf(buffer, "%255s %7s %1023s", key, op, value) != 3) {
WDEBUG2("Skipping badly formatted line %s",
buffer);
continue;
Expand Down

0 comments on commit 337103e

Please sign in to comment.