|
@ -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 |
|
|