Bug#984331: sipxtapi: ftbfs with GCC-11

2023-12-18 Thread Yavor Doganov
Control: tags -1 + patch

Please find attached a patch.
Description: Fix FTBFS with GCC 11+.
Bug-Debian: https://bugs.debian.org/984331
Author: Yavor Doganov 
Forwarded: no
Last-Update: 2023-12-18
---

--- sipxtapi-3.3.0~test18+dfsg.1.orig/sipXtackLib/src/net/SipMessage.cpp
+++ sipxtapi-3.3.0~test18+dfsg.1/sipXtackLib/src/net/SipMessage.cpp
@@ -3806,13 +3806,13 @@
 routeString.append(SIP_MULTIFIELD_SEPARATOR);
 }
 // Make sure the route is in name-addr format
-if(strstr(routeUri,"<") <= 0)
+if(!strstr(routeUri,"<"))
 {
 routeString.append("<");
 }
 
 routeString.append(routeUri);
-if(strstr(routeUri, ">") <= 0)
+if(!strstr(routeUri, ">"))
 {
 routeString.append(">");
 }


Processed: Re: Bug#984331: sipxtapi: ftbfs with GCC-11

2023-12-18 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + patch
Bug #984331 [src:sipxtapi] sipxtapi: ftbfs with GCC-11
Added tag(s) patch.

-- 
984331: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984331
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems