Fix two gcc warnings

This commit is contained in:
jvoisin 2014-06-06 13:22:52 +02:00
parent 06ec145106
commit 3affd8ecb2
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 */