Skip to content

Commit

Permalink
core: parse fline - cast number to char for print to avoid compile wa…
Browse files Browse the repository at this point in the history
…rning

(cherry picked from commit ccb368e)
  • Loading branch information
miconda committed Aug 29, 2017
1 parent 55ed4b3 commit 4043bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parser/parse_fline.c
Expand Up @@ -248,7 +248,7 @@ char* parse_first_line(char* buffer, unsigned int len, struct msg_start* fl)
if (prn) {
for (t=0; t<offset; t++)
if (*(buffer+t)) *(prn+t)=*(buffer+t);
else *(prn+t)=176; /* '°' */
else *(prn+t)=(char)176; /* '°' */
LOG(L_DBG, "parsed so far: %.*s\n", offset, ZSW(prn) );
pkg_free( prn );
};
Expand Down

0 comments on commit 4043bbc

Please sign in to comment.