aboutsummaryrefslogtreecommitdiffstats
path: root/editors/uzap/files/patch-search.c
blob: ccaebe7e1fe7086755efb116e090c99d12db3086 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- search.c.orig	1989-03-30 18:04:12 UTC
+++ search.c
@@ -217,7 +217,7 @@ unsigned char hdigit[16], temp[128];
          }
       }
       for(x= 0; x < len - 1; x+= 2){
-         strcpy(hdigit, hex + (len - x - 2), 2);
+         strncpy(hdigit, hex + (len - x - 2), 2);
          hdigit[2]= '\0';
    
          if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48;