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 78c3a7b..7f2a84d 100644 --- a/src/device.c +++ b/src/device.c @@ -143,7 +143,7 @@ char * hwrevs_alloc_to_string(const int16_t * hwrevs) { int len = 0; for ( i = 0; hwrevs[i] != -1; ++i ) - len += log10(hwrevs[i])+2; + len += log10(hwrevs[i]+1)+2; ret = calloc(1, len+1); if ( ! ret ) |