Bug#984331: sipxtapi: ftbfs with GCC-11
Yavor Doganov
yavor at gnu.org
Mon Dec 18 16:51:28 GMT 2023
Control: tags -1 + patch
Please find attached a patch.
-------------- next part --------------
Description: Fix FTBFS with GCC 11+.
Bug-Debian: https://bugs.debian.org/984331
Author: Yavor Doganov <yavor at gnu.org>
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(">");
}
More information about the Pkg-voip-maintainers
mailing list