smatch_about_fn_ptr_arg.c (1f5207b7) | smatch_about_fn_ptr_arg.c (efe51d0c) |
---|---|
1/* 2 * Copyright (C) 2017 Oracle. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * --- 125 unchanged lines hidden (view full) --- 134 break; 135 if (fn_str[len_str - 1] == '>') 136 break; 137 len_str--; 138 len_ptr--; 139 } 140 141 strncpy(buf, fn_str, sizeof(buf)); | 1/* 2 * Copyright (C) 2017 Oracle. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * --- 125 unchanged lines hidden (view full) --- 134 break; 135 if (fn_str[len_str - 1] == '>') 136 break; 137 len_str--; 138 len_ptr--; 139 } 140 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 *sym = tmp_sym; 144 return alloc_string(buf); 145} 146 147static void match_assign_function(struct expression *expr) 148{ 149 struct expression *right, *arg; 150 struct symbol *sym; --- 82 unchanged lines hidden --- | 143 *sym = tmp_sym; 144 return alloc_string(buf); 145} 146 147static void match_assign_function(struct expression *expr) 148{ 149 struct expression *right, *arg; 150 struct symbol *sym; --- 82 unchanged lines hidden --- |