13 lines
232 B
Text
13 lines
232 B
Text
|
Index: tools/rng.cc
|
||
|
--- tools/rng.cc.orig
|
||
|
+++ tools/rng.cc
|
||
|
@@ -853,7 +853,7 @@ RNG::RNG (const char *s)
|
||
|
{
|
||
|
if (strlen (s) > 99) {
|
||
|
strncpy (name_, s, 99);
|
||
|
- name_[100] = 0;
|
||
|
+ name_[99] = 0;
|
||
|
}
|
||
|
else
|
||
|
strcpy (name_, s);
|