From 774e92bd449f9aa044c84c25f20e142cd4a283c8 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Tue, 11 Jul 2017 20:27:42 +0200 Subject: [PATCH] change to unsigned because of possible wrong range --- ddbridge/ddbridge-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index 1e5206c..b94e066 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -4720,7 +4720,7 @@ static ssize_t bpsnr_show(struct device *device, struct device_attribute *attr, char *buf) { struct ddb *dev = dev_get_drvdata(device); - char snr[32]; + unsigned char snr[32]; if (!dev->i2c_num) return 0;