forked from vieter-v/libvieter
fix: Using snprintf while ignoring its return value could lead to valid inputs getting truncated.
This commit is contained in:
parent
9211bc3351
commit
c7c4043108
2 changed files with 33 additions and 28 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue