Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
service: fix service_class_caid_get() snprintf - coverity
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 3228f40 commit 0f592f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.c
Expand Up @@ -154,7 +154,7 @@ service_class_caid_get ( void *obj )
case SCT_CA:
LIST_FOREACH(c, &st->es_caids, link) {
l = strlen(buf);
snprintf(buf + l, l - sizeof(buf), "%s%04X:%06X",
snprintf(buf + l, sizeof(buf) - l, "%s%04X:%06X",
l ? "," : "", c->caid, c->providerid);
}
break;
Expand Down

0 comments on commit 0f592f4

Please sign in to comment.