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:
parent
fbee540bf5
commit
06eac5b1d2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user