diff options
-rw-r--r-- | sound/oss/sound_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/sound_timer.c b/sound/oss/sound_timer.c index 48cda6c4c257..8021c85f076d 100644 --- a/sound/oss/sound_timer.c +++ b/sound/oss/sound_timer.c | |||
@@ -320,7 +320,7 @@ void sound_timer_init(struct sound_lowlev_timer *t, char *name) | |||
320 | n = sound_alloc_timerdev(); | 320 | n = sound_alloc_timerdev(); |
321 | if (n == -1) | 321 | if (n == -1) |
322 | n = 0; /* Overwrite the system timer */ | 322 | n = 0; /* Overwrite the system timer */ |
323 | strcpy(sound_timer.info.name, name); | 323 | strlcpy(sound_timer.info.name, name, sizeof(sound_timer.info.name)); |
324 | sound_timer_devs[n] = &sound_timer; | 324 | sound_timer_devs[n] = &sound_timer; |
325 | } | 325 | } |
326 | EXPORT_SYMBOL(sound_timer_init); | 326 | EXPORT_SYMBOL(sound_timer_init); |