gtk/modules/printbackends
Emmanuele Bassi 14c8a603e3 Terminate strncpy() buffers correctly
When using strncpy() with a buffer we need to account for the
terminating NUL character. GCC 8 started warning when using PPD_MAX_NAME
as the buffer length for strncpy() because the buffer we're copying into
has the same length — which means that the terminating NUL may be
skipped if the source string has a length of PPD_MAX_NAME.

The appropriate way to handle the case where we're copying a source with
a length bigger than of PPD_MAX_NAME is, as reported in the strncpy()
documentation, to copy `PPD_MAX_NAME - 1` bytes, and explicitly NUL
terminate the destination buffer. This has the additional benefit of
avoiding the compiler warning.
2018-04-10 14:54:45 +01:00
..
gtkcloudprintaccount.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkcloudprintaccount.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkcupssecretsutils.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkcupssecretsutils.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkcupsutils.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkcupsutils.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendcloudprint.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendcloudprint.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendcups.c Terminate strncpy() buffers correctly 2018-04-10 14:54:45 +01:00
gtkprintbackendcups.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendfile.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendfile.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendlpr.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintbackendlpr.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintercloudprint.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintercloudprint.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintercups.c Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
gtkprintercups.h Consolidate print backends into one directory 2018-03-11 12:38:35 -04:00
meson.build build: Fix printbackends 2018-03-18 19:08:28 +01:00