fix: Using snprintf while ignoring its return value could lead to valid inputs getting truncated.

This commit is contained in:
GreekStapler 2023-01-31 21:00:08 +00:00
parent 9211bc3351
commit c7c4043108
2 changed files with 33 additions and 28 deletions

View file

@ -1,16 +1,10 @@
#ifndef VIETER_PACKAGE
#define VIETER_PACKAGE
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <archive.h>
#include <archive_entry.h>
typedef struct vieter_package vieter_package;
/*
* Parse package file into something usable by libvieter.
* The pointer returned by this function will need to freed at a later point.