aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--win32/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/process.c b/win32/process.c
index 33f45ee42..0d120936e 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -795,7 +795,7 @@ UNUSED_PARAM
795 return sp; 795 return sp;
796} 796}
797 797
798void FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm) 798int FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm)
799{ 799{
800 const char *str, *cmdline; 800 const char *str, *cmdline;
801 801
@@ -807,6 +807,7 @@ void FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm)
807 else 807 else
808 cmdline = comm; 808 cmdline = comm;
809 safe_strncpy(buf, cmdline, col); 809 safe_strncpy(buf, cmdline, col);
810 return 0;
810} 811}
811 812
812/** 813/**