COVERITY: buffer size warning corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Dec 2010 07:59:19 +0000 (07:59 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Dec 2010 07:59:19 +0000 (07:59 +0000)
THerwig/THerwig6.cxx

index 4bcb9d6..903a6b2 100644 (file)
@@ -184,8 +184,8 @@ void THerwig6::Initialize(const char *beam, const char *target, double pbeam1, d
 
    // initialization:
    // type of beams
-   strncpy(HWBMCH.PART1,beam,8);
-   strncpy(HWBMCH.PART2,target,8);
+   strncpy(HWBMCH.PART1,beam, 7);
+   strncpy(HWBMCH.PART2,target, 7);
    // momentum of beams
    HWPROC.PBEAM1=pbeam1;
    HWPROC.PBEAM2=pbeam2;