mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
Minor syntax issues in panels
This commit is contained in:
parent
9fe0d9daf9
commit
bbde62307a
@ -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, "\"");
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user