Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_about_fn_ptr_arg.c
          +++ new/usr/src/tools/smatch/src/smatch_about_fn_ptr_arg.c
↓ open down ↓ 131 lines elided ↑ open up ↑
 132  132          while (len_str > 0 && len_ptr > 0) {
 133  133                  if (fn_str[len_str - 1] != fn_member[len_ptr - 1])
 134  134                          break;
 135  135                  if (fn_str[len_str - 1] == '>')
 136  136                          break;
 137  137                  len_str--;
 138  138                  len_ptr--;
 139  139          }
 140  140  
 141  141          strncpy(buf, fn_str, sizeof(buf));
 142      -        snprintf(buf + len_str, sizeof(buf) - len_str, end_type);
      142 +        snprintf(buf + len_str, sizeof(buf) - len_str, "%s", end_type);
 143  143          *sym = tmp_sym;
 144  144          return alloc_string(buf);
 145  145  }
 146  146  
 147  147  static void match_assign_function(struct expression *expr)
 148  148  {
 149  149          struct expression *right, *arg;
 150  150          struct symbol *sym;
 151  151          char *data_member;
 152  152          struct symbol *type;
↓ open down ↓ 80 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX