```
char result[MAX_BD_NAME_SIZE + 2 + 1] = {0}; // For "\r\n" and "\0"
...
strcat(result, "\r\n");
```