mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 06:55:01 +00:00
Use snprintf instead of sprintf in io.debug for linux
This commit is contained in:
parent
a980a1a0b0
commit
990d6c9855
@ -543,7 +543,7 @@ static RIODesc *__open(RIO *io, const char *file, int rw, int mode) {
|
||||
ret = _plugin->open (io, uri, rw, mode);
|
||||
#endif
|
||||
} else {
|
||||
sprintf (uri, "attach://%d", pid);
|
||||
snprintf (uri, sizeof (uri), "attach://%d", pid);
|
||||
_plugin = r_io_plugin_resolve (io, (const char *)uri, false);
|
||||
if (!_plugin || !_plugin->open) {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user