summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2010-12-09 20:19:18 +0000
committerKinsey Moore <kmoore@digium.com>2010-12-09 20:19:18 +0000
commitd6aabd12e0c79bac96b8c8a1d5ef725fbb1c4075 (patch)
tree21340228655d8e7dfce96f071753c03cfe025812
parentec560798ddeb9094774eec53207f38928a636d84 (diff)
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
-rw-r--r--drivers/dahdi/dahdi-base.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 9dd829c..132018a 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -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;
}