mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 10:15:22 -06:00
Fix new gcc-8 warning about strncat.
gcc-8 wants us to use strcat for string constants.
This commit is contained in:
parent
885689b42d
commit
3a91eedb45
@ -643,7 +643,7 @@ start_over:
|
|||||||
char *posix_d_t_fmt;
|
char *posix_d_t_fmt;
|
||||||
|
|
||||||
strncpy (d_t_fmt, date_locale_string, date_len);
|
strncpy (d_t_fmt, date_locale_string, date_len);
|
||||||
strncat (d_t_fmt, " ", 1);
|
strcat (d_t_fmt, " ");
|
||||||
strncat (d_t_fmt, time_locale_string, time_len);
|
strncat (d_t_fmt, time_locale_string, time_len);
|
||||||
free (date_locale_string);
|
free (date_locale_string);
|
||||||
free (time_locale_string);
|
free (time_locale_string);
|
||||||
@ -888,7 +888,7 @@ match_century:
|
|||||||
char *posix_t_p_fmt;
|
char *posix_t_p_fmt;
|
||||||
|
|
||||||
strncpy (t_p_fmt, locale_string, locale_len);
|
strncpy (t_p_fmt, locale_string, locale_len);
|
||||||
strncat (t_p_fmt, " tt", 3);
|
strcat (t_p_fmt, " tt");
|
||||||
|
|
||||||
posix_t_p_fmt = translate_win32_picture (t_p_fmt);
|
posix_t_p_fmt = translate_win32_picture (t_p_fmt);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user