Skip to content

Commit

Permalink
netxml-ups: alarm channel prompt fix
Browse files Browse the repository at this point in the history
Using CRLF instead of just LF causes blocking of the alarm channel
for any other clients
  • Loading branch information
Vaclav Krpec authored and Vaclav Krpec committed Jun 20, 2013
1 parent d2e1bb0 commit 704d763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/netxml-ups.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static int netxml_alarm_subscribe(const char *page)
return NE_RETRY;
}

snprintf(buf, sizeof(buf), "<Subscription Identification=\"%u\"></Subscription>\r\n", secret);
snprintf(buf, sizeof(buf), "<Subscription Identification=\"%u\"></Subscription>\n", secret);
ret = ne_sock_fullwrite(sock, buf, strlen(buf));

if (ret != NE_OK) {
Expand Down

0 comments on commit 704d763

Please sign in to comment.