From: Marcel Holtmann Date: Wed, 9 Dec 2009 00:09:06 +0000 (+0100) Subject: Fix issue with TUN name assignment for VPN X-Git-Tag: 0.48~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cd82fe7fe1fdba76a1732481807a6a07def0e4d;p=platform%2Fupstream%2Fconnman.git Fix issue with TUN name assignment for VPN --- diff --git a/plugins/openconnect.c b/plugins/openconnect.c index 40acd82..d743642 100644 --- a/plugins/openconnect.c +++ b/plugins/openconnect.c @@ -66,7 +66,7 @@ static int kill_tun(char *tun_name) memset(&ifr, 0, sizeof(ifr)); ifr.ifr_flags = IFF_TUN | IFF_NO_PI; - sprintf(ifr.ifr_name, tun_name); + sprintf(ifr.ifr_name, "%s", tun_name); fd = open("/dev/net/tun", O_RDWR); if (fd < 0) {