]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
Removed all calls to strcpy; most of them are now calls to strlcpy or memcpy.
[xonotic/darkplaces.git] / vid_wgl.c
index 3c5614d69b0faaa56dd2789c3252a126c3d32e92..38c4d868ce1acb0e2f42b75a017c4eecd77c7a4d 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -688,7 +688,7 @@ static int GL_OpenLibrary(const char *name)
                Con_Printf("Unable to LoadLibrary %s\n", name);
                return false;
        }
-       strcpy(gl_driver, name);
+       strlcpy(gl_driver, name, sizeof(gl_driver));
        return true;
 }