]> www.tinc-vpn.org Git - tinc/blobdiff - src/script.c
Fix UBSAN warnings about conversions and overflows.
[tinc] / src / script.c
index e465ab7be90ea352e0514f96026a5daad258e1eb..1336ff374a695918f9b11cb25813ca722f4b1abb 100644 (file)
@@ -35,7 +35,7 @@ static void unputenv(const char *p) {
                return;
        }
 
-       int len = e - p;
+       ptrdiff_t len = e - p;
 #ifndef HAVE_UNSETENV
 #ifdef HAVE_MINGW
        // Windows requires putenv("FOO=") to unset %FOO%