Browse Source

Test

etomic
jl777 7 years ago
parent
commit
f892e94d3b
  1. 2
      crypto777/iguana_utils.c

2
crypto777/iguana_utils.c

@ -446,6 +446,7 @@ char *clonestr(char *str)
return(clone); return(clone);
} }
int32_t zeroval() { return(0); }
int32_t safecopy(char *dest,char *src,long len) int32_t safecopy(char *dest,char *src,long len)
{ {
@ -459,6 +460,7 @@ int32_t safecopy(char *dest,char *src,long len)
if ( i == len ) if ( i == len )
{ {
printf("safecopy: %s too long %ld\n",src,len); printf("safecopy: %s too long %ld\n",src,len);
printf("divide by zero! %d\n",1/zeroval());
#ifdef __APPLE__ #ifdef __APPLE__
//getchar(); //getchar();
#endif #endif

Loading…
Cancel
Save