]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10064: [mod_managed] Fix compile on windows.
authorAndrey Volk <andywolk@gmail.com>
Thu, 20 Jul 2017 20:38:44 +0000 (23:38 +0300)
committerAndrey Volk <andywolk@gmail.com>
Thu, 20 Jul 2017 20:38:44 +0000 (23:38 +0300)
src/include/switch_utils.h

index 057e0c58b408a87221f4684ce236e9045dec9f1a..5a57525577e3339ebbe05a043ca0670acc1c20ec 100644 (file)
@@ -57,7 +57,9 @@ static inline char *switch_get_hex_bytes(switch_byte_t *buf, switch_size_t datal
        pp = new_buf;
 
        for (p = buf; p < e && pp < ee - 4; p++) {
-               snprintf(pp, 4, "%.2x ", (int)*p);
+               if (snprintf(pp, 4, "%.2x ", (int)*p) < 0) {
+                       return NULL;
+               }
                pp += 3;
        }
        *(pp-1) = '\0';