Fix format-truncation warning, missing string.h inclusion and strnlen warning (#723)

* Fix format-truncation warning, missing string.h inclusion and strnlen warning

* Dynamic string width field
This commit is contained in:
Fl0-0 2018-11-30 09:03:44 +01:00 committed by pwpiwi
commit 994f21fe01
2 changed files with 4 additions and 1 deletions

View file

@ -8,11 +8,14 @@
// asn.1 dumping
//-----------------------------------------------------------------------------
#define _POSIX_C_SOURCE 200809L // need for strnlen()
#include "asn1dump.h"
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <jansson.h>
#include <mbedtls/asn1.h>
#include <mbedtls/oid.h>