1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/editors/uzap/files/patch-b
Joerg Wunsch 141af0148c uzap - a small & nice hex editor
Unfortunately, the copyright is somewhat restrictive, so we cannot
make a package out of it.  The author seem no longer to be reachable
under the provided mail address.
1995-06-22 21:27:29 +00:00

20 lines
540 B
Plaintext

*** search.c.orig Thu Mar 30 20:04:12 1989
--- search.c Mon Jun 19 22:17:24 1995
***************
*** 217,223 ****
}
}
for(x= 0; x < len - 1; x+= 2){
! strcpy(hdigit, hex + (len - x - 2), 2);
hdigit[2]= '\0';
if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48;
--- 217,223 ----
}
}
for(x= 0; x < len - 1; x+= 2){
! strncpy(hdigit, hex + (len - x - 2), 2);
hdigit[2]= '\0';
if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48;