mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
Fix two gcc warnings
This commit is contained in:
parent
06ec145106
commit
3affd8ecb2
@ -716,7 +716,7 @@ static RDebugInfo* r_debug_native_info(RDebug *dbg, const char *arg) {
|
||||
rdi->gid = -1;// TODO
|
||||
rdi->cwd = NULL;// TODO : use readlink
|
||||
rdi->exe = NULL;// TODO : use readlink!
|
||||
snprintf (procpid_cmdline, "/proc/%d/cmdline", rdi->pid);
|
||||
snprintf (procpid_cmdline, sizeof(procpid_cmdline), "/proc/%d/cmdline", rdi->pid);
|
||||
rdi->cmdline = r_file_slurp (procpid_cmdline, NULL);
|
||||
return rdi;
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <r_io.h>
|
||||
|
||||
#if 0
|
||||
/*
|
||||
|
||||
| io.va | | io.ff |
|
||||
.------------------.
|
||||
@ -34,7 +34,7 @@ maddr -> vaddr
|
||||
it is possible to get a list of virtual addresses that
|
||||
point to a given physical address from a virtual one.
|
||||
|
||||
#endif
|
||||
*/
|
||||
|
||||
/* Virtual Addressing API */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user