Error On update urls.db from urls.diff

error cause by file handle malloc buffer size not enough. ^_^
how to dynamic this buffer size? default + 5, I increase this number, bugs is 
fixed.

but why does domains.db can update but urls.db cannot??

partial source code from sgDb.c

    if(globalUpdate){
      if(dbfile == NULL){
        sgLogError("error update dbfile %s.db. file does not exists, use -C 
to c
reate",file);
      } else {
***        update = (char *) sgMalloc(strlen(file) + 5);
           update = (char *) sgMalloc(strlen(file) + 10);

Reply via email to