From: hadaq@Frankfurt Date: Thu, 24 Oct 2013 12:17:25 +0000 (+0200) Subject: small change in text buffer size X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=059a62a9bf3e9ec9dbea9fae672bb3c729457dc5;p=trbnettools.git small change in text buffer size --- diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index e80e19f..c840256 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -243,14 +243,14 @@ static void remove(struct pci_dev *dev) ssize_t pexor_sysfs_codeversion_show(struct device *dev, struct device_attribute *attr, char *buf) { - char vstring[1024]; + char vstring[256]; ssize_t curs = 0; #ifdef PEXOR_WITH_SFP struct dev_pexor *pg; #endif struct pexor_privdata *privdata; privdata = (struct pexor_privdata *)dev_get_drvdata(dev); - curs = snprintf(vstring, 1024, + curs = snprintf(vstring, 256, "*** This is PEXOR driver version %s build on %s at %s \n\t", PEXORVERSION, __DATE__, __TIME__); #ifdef PEXOR_WITH_SFP