blob: c590400f649f8564a81973b4c5c4f8ffac399c67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/spacerider.cpp.old 2010-10-29 10:12:19.000000000 +0200
+++ b/spacerider.cpp 2010-10-29 10:13:47.000000000 +0200
@@ -112,7 +112,7 @@
break;
case 'n':
/* specify a name for the online-highscore */
- strncpy(name, optarg, 128);
+ strncpy(name, optarg, sizeof (name));
online_highscore = true;
break;
case 't':
|