aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/capi/capidrv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index 48c1775ef5b3..cb42b690b45e 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -2332,13 +2332,14 @@ static int __init capidrv_init(void)
2332 2332
2333static void __exit capidrv_exit(void) 2333static void __exit capidrv_exit(void)
2334{ 2334{
2335 char rev[10]; 2335 char rev[32];
2336 char *p; 2336 char *p;
2337 2337
2338 if ((p = strchr(revision, ':')) != 0) { 2338 if ((p = strchr(revision, ':')) != 0) {
2339 strcpy(rev, p + 1); 2339 strncpy(rev, p + 1, sizeof(rev));
2340 p = strchr(rev, '$'); 2340 rev[sizeof(rev)-1] = 0;
2341 *p = 0; 2341 if ((p = strchr(rev, '$')) != 0)
2342 *p = 0;
2342 } else { 2343 } else {
2343 strcpy(rev, " ??? "); 2344 strcpy(rev, " ??? ");
2344 } 2345 }