[GRASS-git] [OSGeo/grass] 922282: lib: deprecate G_snprintf() and replace with C99 s...
Nicklas Larsson
noreply at github.com
Tue Sep 3 15:04:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 9222822ae60ae327d09c07ee9c40053762e4b7a3
https://github.com/OSGeo/grass/commit/9222822ae60ae327d09c07ee9c40053762e4b7a3
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M imagery/i.topo.corr/main.c
M lib/gis/color_rules.c
M lib/gis/parser.c
M lib/gis/parser_wps.c
M lib/gis/snprintf.c
M lib/gis/timestamp.c
M lib/imagery/loc_info.c
M lib/init/clean_temp.c
M lib/temporal/lib/default_name.c
M raster/r.colors/edit_colors.c
M raster/r.external/main.c
M raster/r.geomorphon/main.c
M raster/r.geomorphon/profile.c
M raster/r.in.gdal/main.c
M raster/r.in.pdal/main.cpp
M raster/r.reclass/reclass.c
M raster/r.sim/simlib/output.c
M raster3d/r3.in.ascii/main.c
M raster3d/r3.out.ascii/main.c
M raster3d/r3.out.bin/main.c
M raster3d/r3.out.netcdf/main.c
M vector/v.what.rast3/main.c
Log Message:
-----------
lib: deprecate G_snprintf() and replace with C99 snprintf() (#4189)
* lib: deprecate G_snprintf() and replace with C99 snprintf()
Beginning with UCRT in Visual Studio 2015 and Windows 10, the behaviour of snprintf (and vsnprintf) is now C99 standard conformant.
Thus, the output is now always null-terminated. The justification for a internal fix for that is no longer needed.
* r3.out.bin: fix -Werror=sizeof-pointer-memaccess GCC warning
* cast explicitly
* add missing #include
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list