projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7891467
)
Fix -Wsign-compare error in keys.c
author
Fufu Fang
<fangfufu2003@gmail.com>
Mon, 9 Aug 2021 23:34:29 +0000
(
00:34
+0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 10 Aug 2021 18:36:22 +0000
(20:36 +0200)
Part of https://github.com/gsliepen/tinc/issues/288
src/keys.c
patch
|
blob
|
history
diff --git
a/src/keys.c
b/src/keys.c
index
c857fb6
..
dacb87b
100644
(file)
--- a/
src/keys.c
+++ b/
src/keys.c
@@
-21,7
+21,7
@@
bool disable_old_keys(const char *filename, const char *what) {
return false;
}
-
in
t result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename);
+
size_
t result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename);
if(result < sizeof(tmpfile)) {
struct stat st = {.st_mode = 0600};