Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package blog for openSUSE:Factory checked in 
at 2026-09-12 21:15:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/blog (Old)
 and      /work/SRC/openSUSE:Factory/.blog.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "blog"

Sat Sep 12 21:15:30 2026 rev:30 rq:1377364 version:2.48

Changes:
--------
--- /work/SRC/openSUSE:Factory/blog/blog.changes        2026-07-17 
18:47:16.020771938 +0200
+++ /work/SRC/openSUSE:Factory/.blog.new.1265/blog.changes      2026-09-12 
21:16:06.272356841 +0200
@@ -1,0 +2,7 @@
+Fri Sep 11 08:36:03 UTC 2026 - Dr. Werner Fink <[email protected]>
+
+- Update to version 2.48
+  * Avoid fortify compiler warnings in vmcp.c
+  * Simplify parseterm() to avoid compiler warning
+
+-------------------------------------------------------------------

Old:
----
  showconsole-2.47.tar.gz

New:
----
  showconsole-2.48.tar.gz

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

Other differences:
------------------
++++++ blog.spec ++++++
--- /var/tmp/diff_new_pack.EB7zqV/_old  2026-09-12 21:16:07.965427253 +0200
+++ /var/tmp/diff_new_pack.EB7zqV/_new  2026-09-12 21:16:07.967427336 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           blog
-Version:        2.47
+Version:        2.48
 %define sonum   2
 Release:        0
 Summary:        Boot logging

++++++ showconsole-2.47.tar.gz -> showconsole-2.48.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/showconsole-2.47/Makefile 
new/showconsole-2.48/Makefile
--- old/showconsole-2.47/Makefile       2026-07-15 14:22:56.000000000 +0200
+++ new/showconsole-2.48/Makefile       2026-09-11 10:34:04.000000000 +0200
@@ -15,7 +15,7 @@
 DEBUG   =
 DESTDIR         =
 MAJOR   :=     2
-MINOR   :=     47
+MINOR   :=     48
 VERSION         :=     $(MAJOR).$(MINOR)
 DATE    =      $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]')
 COPTS    =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/showconsole-2.47/libconsole/vmcp.c 
new/showconsole-2.48/libconsole/vmcp.c
--- old/showconsole-2.47/libconsole/vmcp.c      2026-07-15 14:22:56.000000000 
+0200
+++ new/showconsole-2.48/libconsole/vmcp.c      2026-09-11 10:34:04.000000000 
+0200
@@ -77,9 +77,13 @@
 static char* askvmcp(int fd, const char *question)
 {
     long pagesize = sysconf(_SC_PAGESIZE);
-    int rc = 0, num, buffersize;
+    int rc = 0;
+    size_t num, buffersize;
     char* ret = NULL;
 
+    if (pagesize <= 0)
+       return NULL;
+
     num = (strlen(question) + pagesize - 1)/pagesize;
     buffersize = num * pagesize;
 
@@ -94,11 +98,12 @@
     } while (rc < 0);
     if (ioctl(fd, VMCP_GETCODE, &rc) == -1)
        goto out;
-    if (ioctl(fd, VMCP_GETSIZE, &buffersize) == -1)
+    if (ioctl(fd, VMCP_GETSIZE, &buffersize) == -1 || buffersize == 0)
        goto out;
-    ret = (char*)malloc(buffersize);
+    ret = (char*)malloc(buffersize + 1);
     if (!ret)
        goto out;
+    ret[buffersize] = '\0';
     do {
        rc = read(fd, ret, buffersize);
        if (rc < 0) {
@@ -130,9 +135,13 @@
 static int writevmcp(int fd, char *instruction)
 {
     long pagesize = sysconf(_SC_PAGESIZE);
-    int rc = 0, num, buffersize;
+    int rc = 0;
+    size_t num, buffersize;
     int ret = -1;
 
+    if (pagesize <= 0)
+       goto out;
+
     num = (strlen(instruction) + pagesize - 1)/pagesize;
     buffersize = num * pagesize;
 
@@ -203,16 +212,15 @@
 
 void parseterm(char *msg)
 {
-    int n;
-    char *token, *ptr;
-    for (n = 1, ptr = msg; ; n++, ptr = NULL) {
-       token = strtok(ptr, ",\n");
-       if (!token)
-           break;
+    char *token;
+
+    for (token = strtok(msg, ",\n"); token != NULL; token = strtok(NULL, 
",\n")) {
        if (hold && more)
            break;
+
        while (*token == ' ')
            token++;
+
        if (strncmp("MORE ", token, 5) == 0)
            more = strdup(token);
        if (strncmp("HOLD ", token, 5) == 0)

Reply via email to