12345678910111213141516 |
- Subject: Don't copy NULL (Igor Gnatenko)
- Origin: FILE5_28-9-g1222ebc
- Upstream-Author: Christos Zoulas <christos@zoulas.com>
- Date: Tue Jun 28 16:38:26 2016 +0000
- --- a/src/compress.c
- +++ b/src/compress.c
- @@ -517,7 +517,7 @@
-
- return OKDATA;
- err:
- - strlcpy((char *)*newch, z.msg, bytes_max);
- + strlcpy((char *)*newch, z.msg ? z.msg : zError(rc), bytes_max);
- *n = strlen((char *)*newch);
- return ERRDATA;
- }
|