diff options
| -rw-r--r-- | src/device.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/device.c b/src/device.c index 82b3d0f..78c3a7b 100644 --- a/src/device.c +++ b/src/device.c @@ -145,7 +145,7 @@ char * hwrevs_alloc_to_string(const int16_t * hwrevs) {  	for ( i = 0; hwrevs[i] != -1; ++i )  		len += log10(hwrevs[i])+2; -	ret = calloc(1, len); +	ret = calloc(1, len+1);  	if ( ! ret )  		return NULL; |