Merge pull request #1348 in FS/freeswitch from ~ANDYWOLK/freeswitch:bugfix/FS-10064-cannot-compile-mod_managed-under to master
* commit '5626d0b535480de0efa19daae4431063b56f588a': FS-10064: [mod_managed] Fix compile on windows.
This commit is contained in:
commit
ef74427b3e
|
@ -57,7 +57,9 @@ static inline char *switch_get_hex_bytes(switch_byte_t *buf, switch_size_t datal
|
||||||
pp = new_buf;
|
pp = new_buf;
|
||||||
|
|
||||||
for (p = buf; p < e && pp < ee - 4; p++) {
|
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 += 3;
|
||||||
}
|
}
|
||||||
*(pp-1) = '\0';
|
*(pp-1) = '\0';
|
||||||
|
|
Loading…
Reference in New Issue