summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/thirdparty.c
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-12-01 14:03:24 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-12-01 14:03:34 +0100
commit5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f (patch)
treed86f8a5daf1bd327cbe9800b61fd7a4f7a36552b /mdk-stage1/thirdparty.c
parent32621a1b9082425004ec66d268781570f60d8e4a (diff)
downloaddrakx-5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f.tar
drakx-5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f.tar.gz
drakx-5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f.tar.bz2
drakx-5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f.tar.xz
drakx-5f0829d7c0db5a4f9d008434e8e1bcd12ca59b9f.zip
better gcc8 workarounds
Diffstat (limited to 'mdk-stage1/thirdparty.c')
-rw-r--r--mdk-stage1/thirdparty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/thirdparty.c b/mdk-stage1/thirdparty.c
index 9a9e58e39..78bbf485a 100644
--- a/mdk-stage1/thirdparty.c
+++ b/mdk-stage1/thirdparty.c
@@ -241,10 +241,10 @@ static int pcitable_orderer(const void *a, const void *b)
static void thirdparty_load_pcitable(const char *modules_location)
{
- char pcitable_filename[110];
+ char pcitable_filename[100];
FILE * f = NULL;
- sprintf(pcitable_filename, "%s/pcitable", modules_location);
+ snprintf(pcitable_filename, sizeof(pcitable_filename), "%s/pcitable", modules_location);
if (!(f = fopen(pcitable_filename, "rb"))) {
log_message("third_party: no external pcitable found");
return;
@@ -346,7 +346,7 @@ static enum return_type thirdparty_autoload_modules(const char *modules_location
static enum return_type thirdparty_try_directory(char * root_directory, int interactive) {
char modules_location[100];
- char modules_location_release[200];
+ char modules_location_release[100];
char *list_filename;
FILE *f_load, *f_detect;
char **modules_list, **modules_list_release;