|
|
| version 1.4, 2025/03/22 18:43:54 | version 1.5, 2025/04/13 04:22:43 |
|---|---|
| Line 24 | Line 24 |
| * along with FreeM. If not, see <https://www.gnu.org/licenses/>. | * along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
| * | * |
| * $Log$ | * $Log$ |
| * Revision 1.5 2025/04/13 04:22:43 snw | |
| * Fix snprintf calls | |
| * | |
| * Revision 1.4 2025/03/22 18:43:54 snw | * Revision 1.4 2025/03/22 18:43:54 snw |
| * Make STRLEN 255 chars and add BIGSTR macro for larger buffers | * Make STRLEN 255 chars and add BIGSTR macro for larger buffers |
| * | * |
| Line 358 int fma_routines_import (int optc, char | Line 361 int fma_routines_import (int optc, char |
| case '%': | case '%': |
| pct_loaded++; | pct_loaded++; |
| snprintf(roufile, PATH_MAX, "%s/%s.m", pct_rtn_path, parsed_line); | snprintf(roufile, PATH_MAX - 1, "%s/%s.m", pct_rtn_path, parsed_line); |
| break; | break; |
| default: | default: |
| usr_loaded++; | usr_loaded++; |
| snprintf(roufile, PATH_MAX, "%s/%s.m", usr_rtn_path, parsed_line); | snprintf(roufile, PATH_MAX - 1, "%s/%s.m", usr_rtn_path, parsed_line); |
| break; | break; |
| } | } |