refactoring

This commit is contained in:
SJ
2015-12-29 21:14:19 +01:00
parent f17e50d3a7
commit b05ddbf571
4 changed files with 11 additions and 14 deletions

View File

@@ -19,8 +19,8 @@ int string_parser(char *src, char *target, int limit){
int multi_line_string_parser(char *src, char *target, int limit){
if(strlen(src) > 0 && strlen(target) + strlen(src) + 3 < limit){
strncat(target, src, limit);
strncat(target, "\r\n", limit);
strncat(target, src, limit-strlen(target));
strncat(target, "\r\n", limit-strlen(target));
return 0;
}