Files
libgphoto2/examples/sample-libfuzz.c
axxel 87e158c23e introduce helper function aprintf(fmt, ...) (#1010)
This replaces the verbose and error prone pattern of calling
    str = malloc(strlen("some value is 12345678"));
    sprintf(str, "some value is %d", val)
with
    str = aprintf(some value is %d", val);


This is similar to the GNU function asprintf() but returns the pointer
instead of assigning it to the first parameter. It uses the existing
gpi_vsnprintf(fmt, va_list) function.
2024-09-12 13:07:52 +02:00

8.2 KiB