Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libspnav for openSUSE:Factory 
checked in at 2022-12-26 23:28:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libspnav (Old)
 and      /work/SRC/openSUSE:Factory/.libspnav.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libspnav"

Mon Dec 26 23:28:01 2022 rev:12 rq:1045390 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libspnav/libspnav.changes        2022-04-05 
19:56:35.045477234 +0200
+++ /work/SRC/openSUSE:Factory/.libspnav.new.1563/libspnav.changes      
2022-12-26 23:28:14.968998616 +0100
@@ -1,0 +2,8 @@
+Fri Dec 23 20:04:26 UTC 2022 - Herbert Graeber <herb...@graeber-clan.de>
+
+- Update to 1.1:
+  * Fixed non-x11 build which was broken in v1.0.
+  * Fixed out-of-source build regression.
+  * Fixed potential crash in spnav_send_str: made it accept null pointers and 
send empty strings.
+
+-------------------------------------------------------------------

Old:
----
  libspnav-1.0.tar.gz

New:
----
  libspnav-1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libspnav.spec ++++++
--- /var/tmp/diff_new_pack.gEA6sz/_old  2022-12-26 23:28:15.357000883 +0100
+++ /var/tmp/diff_new_pack.gEA6sz/_new  2022-12-26 23:28:15.361000906 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           libspnav
-Version:        1.0
+Version:        1.1
 Release:        0
 Summary:        Library for accessing 3D connexion devices
 License:        BSD-3-Clause

++++++ libspnav-1.0.tar.gz -> libspnav-1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libspnav-1.0/configure new/libspnav-1.1/configure
--- old/libspnav-1.0/configure  2022-04-01 05:04:40.000000000 +0200
+++ new/libspnav-1.1/configure  2022-04-26 16:19:43.000000000 +0200
@@ -125,7 +125,7 @@
 echo 'creating spnav.pc ...'
 pcver=`echo $VER | sed 's/^v//'`
 echo "PREFIX=$PREFIX" >spnav.pc
-cat spnav.pc.in | sed "s/@VERSION@/$pcver/; s/@LIBDIR@/$libdir/" >>spnav.pc
+cat "$srcdir/spnav.pc.in" | sed "s/@VERSION@/$pcver/; s/@LIBDIR@/$libdir/" 
>>spnav.pc
 
 #done
 echo ''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libspnav-1.0/src/proto.c new/libspnav-1.1/src/proto.c
--- old/libspnav-1.0/src/proto.c        2022-04-01 05:04:40.000000000 +0200
+++ new/libspnav-1.1/src/proto.c        2022-04-26 16:19:43.000000000 +0200
@@ -10,16 +10,18 @@
        int len;
        struct reqresp rr = {0};
 
-       if(fd == -1 || !str) {
+       if(fd == -1) {
                return -1;
        }
 
-       len = strlen(str);
+       len = str ? strlen(str) : 0;
        rr.type = req;
        rr.data[6] = len;
 
        do {
-               memcpy(rr.data, str, len > REQSTR_CHUNK_SIZE ? 
REQSTR_CHUNK_SIZE : len);
+               if(str) {
+                       memcpy(rr.data, str, len > REQSTR_CHUNK_SIZE ? 
REQSTR_CHUNK_SIZE : len);
+               }
                write(fd, &rr, sizeof rr);
                str += REQSTR_CHUNK_SIZE;
                len -= REQSTR_CHUNK_SIZE;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libspnav-1.0/src/spnav.c new/libspnav-1.1/src/spnav.c
--- old/libspnav-1.0/src/spnav.c        2022-04-01 05:04:40.000000000 +0200
+++ new/libspnav-1.1/src/spnav.c        2022-04-26 16:19:43.000000000 +0200
@@ -50,14 +50,6 @@
 static Window get_daemon_window(Display *dpy);
 static int catch_badwin(Display *dpy, XErrorEvent *err);
 
-static int read_event(int s, spnav_event *event);
-static int proc_event(int *data, spnav_event *event);
-
-static void flush_resp(void);
-static int wait_resp(void *buf, int sz, int timeout_ms);
-static int request(int req, struct reqresp *rr, int timeout_ms);
-static int request_str(int req, char *buf, int bufsz, int timeout_ms);
-
 
 static Display *dpy;
 static Window app_win;
@@ -73,6 +65,15 @@
 #define IS_OPEN                (sock != -1)
 #endif
 
+static int read_event(int s, spnav_event *event);
+static int proc_event(int *data, spnav_event *event);
+
+static void flush_resp(void);
+static int wait_resp(void *buf, int sz, int timeout_ms);
+static int request(int req, struct reqresp *rr, int timeout_ms);
+static int request_str(int req, char *buf, int bufsz, int timeout_ms);
+
+
 struct event_node {
        spnav_event event;
        struct event_node *next;

Reply via email to