Commit 766edad3 authored by Federico Vaga's avatar Federico Vaga

kernel:[fix] add SDB string terminator

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent acb6fd69
......@@ -24,6 +24,7 @@ static char *__strip_trailing_space(char *buf, char *str, int len)
int i = len - 1;
memcpy(buf, str, len);
buf[len] = '\0';
while(i >= 0 && buf[i] == ' ')
buf[i--] = '\0';
return buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment