Minor syntax issues in panels

This commit is contained in:
pancake 2019-12-24 19:07:08 +01:00
parent 9fe0d9daf9
commit bbde62307a
2 changed files with 10 additions and 10 deletions

View File

@ -1718,15 +1718,15 @@ void __handleComment(RCore *core) {
strcpy (buf, "CC-");
} else {
switch (buf[i]) {
case '-':
memcpy (buf, "\"CC-\x00", 5);
break;
case '!':
memcpy (buf, "\"CC!\x00", 5);
break;
default:
memcpy (buf, "\"CC ", 4);
break;
case '-':
memcpy (buf, "\"CC-", 5);
break;
case '!':
memcpy (buf, "\"CC!", 5);
break;
default:
memcpy (buf, "\"CC ", 4);
break;
}
strcat (buf, "\"");
}

View File

@ -87,7 +87,7 @@ R_API bool r_strbuf_setbin(RStrBuf *sb, const ut8 *s, int l) {
sb->ptr = ptr;
}
memcpy (ptr, s, l);
*(ptr + l) = 0;
ptr[l] = 0;
} else {
R_FREE (sb->ptr);
sb->ptr = NULL;