]> granicus.if.org Git - procps-ng/commitdiff
display problem on 64-bit systems fixed
authoralbert <>
Wed, 5 Jan 2005 21:11:21 +0000 (21:11 +0000)
committeralbert <>
Wed, 5 Jan 2005 21:11:21 +0000 (21:11 +0000)
NEWS
proc/escape.c
proc/escape.h

diff --git a/NEWS b/NEWS
index 05344e985ed22abe22cb873408fafcc80ec8fd1b..338010c2a980a7d3c9d4c839dc28c3f5a978d66e 100644 (file)
--- 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
index d93d8d8c44551f3fc13fef45bedbec5b32b54f3c..0eb1418bde0d5aff372bebb9a3856b6dc4441dca 100644 (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(;;){
index 34cf329643821eb4d83054b6dbaf313467fe86be..7b9400ad36d3e63d403af2a726a8cb5602c0a946 100644 (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);