diff options
author | 2020-01-19 00:52:16 +0000 | |
---|---|---|
committer | 2020-01-19 00:52:16 +0000 | |
commit | 8f55cc08f0ef848ec91bf01f95de204e50db29d0 (patch) | |
tree | dff8589bf631f8ec08ff2a69b3c5c70b1333815d | |
parent | fixes for 'blacklist ${RUNUSER}/wayland-*' (#3166) (diff) | |
parent | Update copyright to 2020 in fs_bin.c (diff) | |
download | firejail-8f55cc08f0ef848ec91bf01f95de204e50db29d0.tar.gz firejail-8f55cc08f0ef848ec91bf01f95de204e50db29d0.tar.zst firejail-8f55cc08f0ef848ec91bf01f95de204e50db29d0.zip |
Merge pull request #3168 from glitsj16/fix-asprinf
Fix typos in fs_bin.c
-rw-r--r-- | src/firejail/fs_bin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c index 17db45bf1..7150fd3eb 100644 --- a/src/firejail/fs_bin.c +++ b/src/firejail/fs_bin.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2014-2019 Firejail Authors | 2 | * Copyright (C) 2014-2020 Firejail Authors |
3 | * | 3 | * |
4 | * This file is part of firejail project | 4 | * This file is part of firejail project |
5 | * | 5 | * |
@@ -185,12 +185,12 @@ static void duplicate(char *fname) { | |||
185 | // add to private-lib list | 185 | // add to private-lib list |
186 | if (cfg.bin_private_lib == NULL) { | 186 | if (cfg.bin_private_lib == NULL) { |
187 | if (asprintf(&cfg.bin_private_lib, "%s,%s",fname, full_path) == -1) | 187 | if (asprintf(&cfg.bin_private_lib, "%s,%s",fname, full_path) == -1) |
188 | errExit("asprinf"); | 188 | errExit("asprintf"); |
189 | } | 189 | } |
190 | else { | 190 | else { |
191 | char *tmp; | 191 | char *tmp; |
192 | if (asprintf(&tmp, "%s,%s,%s", cfg.bin_private_lib, fname, full_path) == -1) | 192 | if (asprintf(&tmp, "%s,%s,%s", cfg.bin_private_lib, fname, full_path) == -1) |
193 | errExit("asprinf"); | 193 | errExit("asprintf"); |
194 | free(cfg.bin_private_lib); | 194 | free(cfg.bin_private_lib); |
195 | cfg.bin_private_lib = tmp; | 195 | cfg.bin_private_lib = tmp; |
196 | } | 196 | } |