From d6aabd12e0c79bac96b8c8a1d5ef725fbb1c4075 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Thu, 9 Dec 2010 20:19:18 +0000 Subject: dahdi-base: Alarms may not be the last item on the line, so don't strip the trailing space Signed-off-by: Kinsey Moore Acked-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9522 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/dahdi/dahdi-base.c') 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; } -- cgit v1.2.3