Commits on Mar 9, 2018

  1. Fix infinite loop bug.

    If the parameter, old is an empty string for some reason, conditions of both for
    loops will be never finished. To fix the bug, added one more condition
    that if oldlen is 0, loops never run.
    
    from: (q = strstr(p, old)) != NULL
    to  : (oldlen != 0) && (q = strstr(p, old)) != NULL
    
    Edited:     src/as-utils.c
    memnoth committed Mar 9, 2018