From 0fb81f5c3951b223402484c931a0878f652743fc Mon Sep 17 00:00:00 2001 From: albert <> Date: Wed, 5 Jan 2005 21:11:21 +0000 Subject: [PATCH] display problem on 64-bit systems fixed --- NEWS | 1 + proc/escape.c | 2 +- proc/escape.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 05344e98..338010c2 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ procps-3.2.4 --> procps-3.2.5 +display problem on 64-bit systems fixed ps: security labels can contain any printable ASCII top: help and version message on stdout, with exit(0) #283541 ps: SIGTSTP from ^Z shouldn't print bug email address diff --git a/proc/escape.c b/proc/escape.c index d93d8d8c..0eb1418b 100644 --- a/proc/escape.c +++ b/proc/escape.c @@ -159,7 +159,7 @@ int escape_str(char *restrict dst, const char *restrict src, int bufsize, int *m // escape an argv or environment string array // // bytes arg means sizeof(buf) -int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t bytes, size_t *cells){ +int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t bytes, int *cells){ size_t i = 0; for(;;){ diff --git a/proc/escape.h b/proc/escape.h index 34cf3296..7b9400ad 100644 --- a/proc/escape.h +++ b/proc/escape.h @@ -12,7 +12,7 @@ EXTERN_C_BEGIN #define ESC_BRACKETS 0x2 // if using cmd, put '[' and ']' around it #define ESC_DEFUNCT 0x4 // mark zombies with " " -extern int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t n, size_t *cells); +extern int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t n, int *cells); extern int escape_str(char *restrict dst, const char *restrict src, int bufsize, int *maxcells); extern int escape_command(char *restrict const outbuf, const proc_t *restrict const pp, int bytes, int *cells, unsigned flags);