|
|
| version 1.5, 2025/04/09 19:52:02 | version 1.6, 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.6 2025/04/13 04:22:43 snw | |
| * Fix snprintf calls | |
| * | |
| * Revision 1.5 2025/04/09 19:52:02 snw | * Revision 1.5 2025/04/09 19:52:02 snw |
| * Eliminate as many warnings as possible while building with -Wall | * Eliminate as many warnings as possible while building with -Wall |
| * | * |
| Line 259 short rtn_get_path(char *rou, char *buf) | Line 262 short rtn_get_path(char *rou, char *buf) |
| stcnv_m2c (pth); | stcnv_m2c (pth); |
| } | } |
| snprintf (buf, PATHLEN, "%s/%s.m", pth, rou); | snprintf (buf, PATHLEN - 1, "%s/%s.m", pth, rou); |
| if ((fp = fopen (buf, "r")) != NULL) { | if ((fp = fopen (buf, "r")) != NULL) { |
| (void) fclose (fp); | (void) fclose (fp); |