21 lines
588 B
Plaintext
21 lines
588 B
Plaintext
$OpenBSD: patch-lib_glut_strokegen_y,v 1.2 2005/11/20 18:03:25 naddy Exp $
|
|
--- lib/glut/strokegen.y.orig Sun Nov 20 18:53:41 2005
|
|
+++ lib/glut/strokegen.y Sun Nov 20 18:52:58 2005
|
|
@@ -243,14 +243,14 @@ main(argc, argv)
|
|
if (*++argv != NULL)
|
|
{
|
|
--argc;
|
|
- (void) strcpy(symname, *argv);
|
|
+ (void) strlcpy(symname, *argv, sizeof(symname));
|
|
}
|
|
break;
|
|
case 'o':
|
|
if (*++argv != NULL)
|
|
{
|
|
--argc;
|
|
- (void) strcpy(fname, *argv);
|
|
+ (void) strlcpy(fname, *argv, sizeof(fname));
|
|
}
|
|
break;
|
|
default: /* ignore other options */
|