dahdi-base: Alarms may not be the last item on the line, so don't strip the trailing space

Signed-off-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9522 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Kinsey Moore 2010-12-09 20:19:18 +00:00
parent fbee540bf5
commit 06eac5b1d2

View File

@ -674,9 +674,6 @@ static int fill_alarm_string(char *buf, int count, int alarms)
(alarms & DAHDI_ALARM_RECOVER) ? "RECOVERING " : "",
(alarms & DAHDI_ALARM_NOTOPEN) ? "NOTOPEN " : "");
if (len > 0)
buf[--len] = '\0'; /* strip last space */
return len;
}