Changeset 275

Show
Ignore:
Timestamp:
09/19/06 17:22:20 (6 years ago)
Author:
knok
Message:

Fixed an expression.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MMagic/trunk/MMagic.pm

    r274 r275  
    12801280        # do octal/hex conversion 
    12811281        # manmin 
    1282         $testval =~ s/\\(x[0-9a-fA-F][0-9a-fA-F])/chr(hex($1))/eg; 
     1282        $testval =~ s/\\x([0-9a-fA-F][0-9a-fA-F])/pack("H2", $1)/eg; 
    12831283        $testval =~ s/\\([0-7][0-7]?[0-7]?)/chr(oct($1))/eg; 
    12841284        # end manmin