diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/Makefile.in /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/Makefile.in --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/Makefile.in 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/Makefile.in 2026-02-04 19:00:27.000000000 +0000 @@ -9,4 +9,5 @@ exec_prefix=@exec_prefix@ BINDIR=@bindir@ +datarootdir = @datarootdir@ MANDIR=@mandir@ INSTALL=@INSTALL@ diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/args.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/args.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/args.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/args.c 2026-02-04 19:00:27.000000000 +0000 @@ -23,5 +23,5 @@ #include -#include +#include "x2vnc.h" #define FLASHPORT (5400) /* Offset to listen for `flash' commands */ @@ -285,5 +285,5 @@ if (sscanf(argv[i], "[%255[0-9a-f:]]:%d", hostname, &port) != 2 && sscanf(argv[i], "%255[^:]:%d", hostname, &port) != 2) { - strncpy(hostname, argv[i], sizeof(hostname)); + snprintf(hostname, sizeof(hostname), "%s", argv[i]); port = 0; } Only in /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4: configure.ac Only in /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4: configure.in diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/d3des.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/d3des.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/d3des.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/d3des.c 2026-02-04 19:00:27.000000000 +0000 @@ -69,7 +69,5 @@ 43, 48, 38, 55, 33, 52, 45, 41, 49, 35, 28, 31 }; -void deskey(key, edf) /* Thanks to James Gillogly & Phil Karn! */ -unsigned char *key; -short edf; +void deskey(unsigned char *key, short edf) /* Thanks to James Gillogly & Phil Karn! */ { register int i, j, l, m, n; @@ -104,8 +102,7 @@ cookey(kn); return; - } +} -static void cookey(raw1) -register unsigned long *raw1; +static void cookey(unsigned long *raw1) { register unsigned long *cook, *raw0; @@ -127,8 +124,7 @@ usekey(dough); return; - } +} -void cpkey(into) -register unsigned long *into; +void cpkey(unsigned long *into) { register unsigned long *from, *endp; @@ -139,6 +135,5 @@ } -void usekey(from) -register unsigned long *from; +void usekey(unsigned long *from) { register unsigned long *to, *endp; @@ -147,8 +142,7 @@ while( to < endp ) *to++ = *from++; return; - } +} -void des(inblock, outblock) -unsigned char *inblock, *outblock; +void des(unsigned char *inblock, unsigned char *outblock) { unsigned long work[2]; @@ -158,9 +152,7 @@ unscrun(work, outblock); return; - } +} -static void scrunch(outof, into) -register unsigned char *outof; -register unsigned long *into; +static void scrunch(unsigned char *outof, unsigned long *into) { *into = (*outof++ & 0xffL) << 24; @@ -173,9 +165,7 @@ *into |= (*outof & 0xffL); return; - } +} -static void unscrun(outof, into) -register unsigned long *outof; -register unsigned char *into; +static void unscrun(unsigned long *outof, unsigned char *into) { *into++ = (*outof >> 24) & 0xffL; @@ -188,5 +178,5 @@ *into = *outof & 0xffL; return; - } +} static unsigned long SP1[64] = { @@ -334,6 +324,5 @@ 0x00001040L, 0x00040040L, 0x10000000L, 0x10041000L }; -static void desfunc(block, keys) -register unsigned long *block, *keys; +static void desfunc(unsigned long *block, unsigned long *keys) { register unsigned long fval, work, right, leftt; diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/listen.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/listen.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/listen.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/listen.c 2026-02-04 19:00:27.000000000 +0000 @@ -26,5 +26,5 @@ #include #include -#include +#include "x2vnc.h" #define FLASHWIDTH 50 /* pixels */ diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/rfbproto.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/rfbproto.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/rfbproto.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/rfbproto.c 2026-02-04 19:00:27.000000000 +0000 @@ -26,9 +26,8 @@ #include #include -#include #include -#include +#include "x2vnc.h" #include -#include +#include "vncauth.h" #include #include @@ -124,5 +123,5 @@ } - sprintf(pv,rfbProtocolVersionFormat,major,minor); + snprintf(pv, sizeof(pv), rfbProtocolVersionFormat, major, minor); if (!WriteExact(sock, pv, sz_rfbProtocolVersionMsg)) return False; @@ -209,5 +208,5 @@ vncEncryptAndStorePasswd(passwd, 0); - if (!WriteExact(sock, challenge, CHALLENGESIZE)) return False; + if (!WriteExact(sock, (char *)challenge, CHALLENGESIZE)) return False; if (!ReadExact(sock, (char *)&authResult, 4)) return False; diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/rfbproto.h /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/rfbproto.h --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/rfbproto.h 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/rfbproto.h 2026-02-04 19:00:27.000000000 +0000 @@ -156,7 +156,7 @@ #define rfbProtocolMinorVersion 3 -typedef char rfbProtocolVersionMsg[13]; /* allow extra byte for null */ +typedef char rfbProtocolVersionMsg[32]; /* allow extra byte for null */ -#define sz_rfbProtocolVersionMsg 12 +#define sz_rfbProtocolVersionMsg 31 Only in /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4: rpm diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/sockets.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/sockets.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/sockets.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/sockets.c 2026-02-04 19:00:27.000000000 +0000 @@ -29,8 +29,8 @@ #include #include -#include +#include "x2vnc.h" void PrintInHex(char *buf, int len); -int tunnel(char *gatewayhost, char *remotehost, int remoteport); +int tunnel(const char *gatewayhost, const char *remotehost, int remoteport); Bool errorMessageFromReadExact = True; @@ -308,5 +308,5 @@ int sock; struct sockaddr_storage addr; - int addrlen = sizeof(addr); + socklen_t addrlen = sizeof(addr); int one = 1; @@ -359,5 +359,5 @@ { struct sockaddr_in peeraddr, myaddr; - int addrlen = sizeof(struct sockaddr_in); + socklen_t addrlen = sizeof(struct sockaddr_in); getpeername(sock, (struct sockaddr *)&peeraddr, &addrlen); @@ -412,5 +412,5 @@ -int tunnel(char *gatewayhost, char *remotehost, int remoteport) +int tunnel(const char *gatewayhost, const char *remotehost, int remoteport) { char *space, *cmd; diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x.c 2026-02-04 19:00:27.000000000 +0000 @@ -26,5 +26,5 @@ #include #include -#include +#include "x2vnc.h" #include #include @@ -136,5 +136,5 @@ int grabmod = ControlMask; -char *client_selection_text=0; +const unsigned char *client_selection_text = NULL; size_t client_selection_text_length=0; @@ -258,5 +258,6 @@ XineramaIsActive(dpy)) { - int pos,e; + int pos=0; + int e; int num_heads; int bestpos=0; @@ -264,5 +265,6 @@ XineramaScreenInfo *heads; - if(heads=XineramaQueryScreens(dpy, &num_heads)) + heads=XineramaQueryScreens(dpy, &num_heads); + if(heads) { /* Loop over all heads and find whatever head @@ -798,5 +800,7 @@ { if (modifierPressed[i]) { - if (!SendKeyEvent(XKeycodeToKeysym(dpy, i, 0), False)) + KeySym sym = XkbKeycodeToKeysym(dpy, i, 0, 0); /* group = 0, level = 0 */ + if (!SendKeyEvent(sym, False)) + return; modifierPressed[i]=False; @@ -1263,5 +1267,5 @@ } if (IsModifierKey(ks)) { - ks = XKeycodeToKeysym(dpy, ev->xkey.keycode, 0); + ks = XkbKeycodeToKeysym(dpy, ev->xkey.keycode, 0, 0); /* Ignore AltGr key, it is handled by XLookupString */ @@ -1281,6 +1285,6 @@ if(debug) - fprintf(stderr," --> %x (%c) name=%s (%s)\n",ks,ks,keyname, - ev->type == KeyPress ? "down" : "up"); + fprintf(stderr, " --> 0x%lx ('%lc') name=%s (%s)\n", (unsigned long)ks, (wchar_t)ks, keyname, + ev->type == KeyPress ? "down" : "up"); /* We assume that typing means an unlocked display */ @@ -1489,5 +1493,5 @@ client_selection_text_length=len; - client_selection_text = str; + client_selection_text = (const unsigned char *)str; XGetWindowAttributes(dpy, RootWindow(dpy, 0), &attrs); diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x2vnc.c /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x2vnc.c --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x2vnc.c 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x2vnc.c 2026-02-04 19:00:27.000000000 +0000 @@ -32,5 +32,5 @@ #include #include -#include +#include "x2vnc.h" int temp_file_fd=0; @@ -60,5 +60,5 @@ tmpdir=getenv("TMPDIR"); - sprintf(tmpfile, "%s/x2vnc-%d-%d", + sprintf(tmpfile, "%s/x2vnc-%d-%ld", tmpdir, getpid(), diff -U2 -r /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x2vnc.h /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x2vnc.h --- /var/lib/copr-rpmbuild/results/x2vnc/upstream-unpacked/Source0/x2vnc-1.7.4/x2vnc.h 2024-05-05 18:55:42.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/x2vnc/srpm-unpacked/x2vnc-1.7.4.tar.gz-extract/x2vnc-1.7.4/x2vnc.h 2026-02-04 19:00:27.000000000 +0000 @@ -28,5 +28,5 @@ #include #include -#include +#include "rfbproto.h" @@ -104,5 +104,5 @@ extern Bool ConnectToRFBServer(const char *hostname, int port); -extern Bool InitialiseRFBConnection(); +extern Bool InitialiseRFBConnection(int sock); extern Bool SetFormatAndEncodings(); extern Bool SendIncrementalFramebufferUpdateRequest();