rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

Blame SOURCES/bash-4.4-param-expansion.patch

07a490
diff --git a/parse.y b/parse.y
07a490
index 9a78d0c..7df7d99 100644
07a490
--- a/parse.y
07a490
+++ b/parse.y
07a490
@@ -4993,7 +4993,8 @@ decode_prompt_string (string)
07a490
   struct dstack save_dstack;
07a490
   int last_exit_value, last_comsub_pid;
07a490
 #if defined (PROMPT_STRING_DECODE)
07a490
-  int result_size, result_index;
07a490
+  size_t result_size;
07a490
+  int result_index;
07a490
   int c, n, i;
07a490
   char *temp, octal_string[4];
07a490
   struct tm *tm;  
07a490
diff --git a/subst.c b/subst.c
07a490
index 9f15f0b..e5ffd03 100644
07a490
--- a/subst.c
07a490
+++ b/subst.c
07a490
@@ -644,11 +644,13 @@ unquoted_substring (substr, string)
07a490
 INLINE char *
07a490
 sub_append_string (source, target, indx, size)
07a490
      char *source, *target;
07a490
-     int *indx, *size;
07a490
+     int *indx;
07a490
+     size_t *size;
07a490
 {
07a490
   if (source)
07a490
     {
07a490
-      int srclen, n;
07a490
+      int n;
07a490
+      size_t srclen;
07a490
 
07a490
       srclen = STRLEN (source);
07a490
       if (srclen >= (int)(*size - *indx))
07a490
@@ -7676,7 +7678,7 @@ expand_word_internal (word, quoted, isexp, contains_dollar_at, expanded_somethin
07a490
   char *istring;
07a490
 
07a490
   /* The current size of the above object. */
07a490
-  int istring_size;
07a490
+  size_t istring_size;
07a490
 
07a490
   /* Index into ISTRING. */
07a490
   int istring_index;
07a490
diff --git a/subst.h b/subst.h
07a490
index b06e8c2..fc66faf 100644
07a490
--- a/subst.h
07a490
+++ b/subst.h
07a490
@@ -127,7 +127,7 @@ extern int do_word_assignment __P((WORD_DESC *));
07a490
    of space allocated to TARGET.  SOURCE can be NULL, in which
07a490
    case nothing happens.  Gets rid of SOURCE by free ()ing it.
07a490
    Returns TARGET in case the location has changed. */
07a490
-extern char *sub_append_string __P((char *, char *, int *, int *));
07a490
+extern char *sub_append_string __P((char *, char *, int *, size_t *));
07a490
 
07a490
 /* Append the textual representation of NUMBER to TARGET.
07a490
    INDEX and SIZE are as in SUB_APPEND_STRING. */
07a490
diff --git a/y.tab.c b/y.tab.c
07a490
index d702554..31faa4a 100644
07a490
--- a/y.tab.c
07a490
+++ b/y.tab.c
07a490
@@ -7280,7 +7280,8 @@ decode_prompt_string (string)
07a490
   struct dstack save_dstack;
07a490
   int last_exit_value, last_comsub_pid;
07a490
 #if defined (PROMPT_STRING_DECODE)
07a490
-  int result_size, result_index;
07a490
+  size_t result_size;
07a490
+  int result_index;
07a490
   int c, n, i;
07a490
   char *temp, octal_string[4];
07a490
   struct tm *tm;  
07a490
-- 
07a490
2.5.5
07a490