aboutsummaryrefslogtreecommitdiff
path: root/tecexec.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-13 20:05:54 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-21 20:49:37 +0300
commit278cc757b3146be68376318999415b97220c4d92 (patch)
treede44a0832bad1392f9b5347144a12af5c9039bf1 /tecexec.c
parent415ef16ae3b6b32652135a219b12a074dff265d9 (diff)
downloadvideoteco-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tecexec.c b/tecexec.c
index d027718..6d0e8e4 100644
--- a/tecexec.c
+++ b/tecexec.c
@@ -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);