From 06eac5b1d28faf2613aceb668bc35b7cf14c379c Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Thu, 9 Dec 2010 20:19:18 +0000 Subject: [PATCH] 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(-) 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; }