--
Since size_t is an unsigned data type, it won't evaluate correctly on errors 
of vasprintf(). This patch makes 'len2' a signed integer, as expected by
vasprintf().

Signed-off-by: Henry Jesuiter <henry.jesui...@alcnetworx.de>
---
diff -rwbBu a/util.c b/util.c
--- a/util.c    2015-09-19 16:25:11.000000000 +0200
+++ b/util.c    2016-07-08 11:33:09.843328724 +0200
@@ -448,7 +448,8 @@
 void string_appendf(char **s, const char *format, ...)
 {
        va_list ap;
-       size_t len1, len2;
+       size_t len1;
+       int len2;
        char *s2;
 
        len1 = strlen(*s);
---

Best regards
Henry Jesuiter

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to