diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-13 20:05:54 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-21 20:49:37 +0300 |
commit | 278cc757b3146be68376318999415b97220c4d92 (patch) | |
tree | de44a0832bad1392f9b5347144a12af5c9039bf1 /tecexec.c | |
parent | 415ef16ae3b6b32652135a219b12a074dff265d9 (diff) | |
download | videoteco-fork-278cc757b3146be68376318999415b97220c4d92.tar.gz |
silence some warnings when compiling under FreeBSD (and probably Linux)
Also avoid old-school function declarations without parameters (`void foo();`).
This is unnecessarily loosing type safety.
Diffstat (limited to 'tecexec.c')
-rw-r--r-- | tecexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1927,7 +1927,7 @@ char tmp_buffer[LINE_BUFFER_SIZE],tmp_message[LINE_BUFFER_SIZE]; char string1[PARSER_STRING_MAX]; extract_label(goto_ptr,string1); - (void) sprintf(tmp_message,"?Can't find label <%s>", + (void) snprintf(tmp_message,sizeof(tmp_message),"?Can't find label <%s>", string1); error_message(tmp_message); return(FAIL); |