Skip to content

Commit

Permalink
fix missing format in snprintf
Browse files Browse the repository at this point in the history
Lmiwbem can't be compiled by Fedora's builders when -Werror=format-security is enabled.
  • Loading branch information
phatina committed Jan 13, 2015
1 parent 674be8b commit a47ff50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmiwbem_urlinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ String get_fqdn() {
if ((gai_result = getaddrinfo(name, port, &hints, &info)) == 0) {
for (p = info; p != NULL; p = p->ai_next) {
if (p->ai_canonname != NULL) {
snprintf(name, BUFLEN, p->ai_canonname);
snprintf(name, BUFLEN, "%s", p->ai_canonname);
break;
}
}
Expand Down

0 comments on commit a47ff50

Please sign in to comment.