diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 16:01:52 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 16:01:52 +0100 |
commit | eebcfa64869557044212ca8df84edd4b8e8143f1 (patch) | |
tree | 74fde8725dc515f793e3e95d72fcb3e3f33b9595 | |
parent | 401bba6adf92d2063052509d22251efd3bb2386b (diff) |
sprintf() -> snprintf()
-rw-r--r-- | FICS/fics_addplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/fics_addplayer.c b/FICS/fics_addplayer.c index eef3045..1417251 100644 --- a/FICS/fics_addplayer.c +++ b/FICS/fics_addplayer.c @@ -129,7 +129,8 @@ main(int argc, char *argv[]) printf("Added player account: >%s< >%s< >%s< >%s<\n", funame, fname, email, password); - sprintf(text, "\nYour player account has been created.\n\n" + snprintf(text, sizeof text, + "\nYour player account has been created.\n\n" "Login Name: %s\n" "Full Name: %s\n" "Email Address: %s\n" |