display problem on 64-bit systems fixed

This commit is contained in:
albert 2005-01-05 21:11:21 +00:00
parent 10ac32d68e
commit 0fb81f5c39
3 changed files with 3 additions and 2 deletions

1
NEWS
View File

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

View File

@ -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(;;){

View File

@ -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 " <defunct>"
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);