falconindy / expac

alpm data extraction utility
91 stars 15 forks source link

Segfault on missing SI size formatter #22

Closed badboy closed 9 years ago

badboy commented 9 years ago

expac crashes when the size formatter is missing:

[~]% expac -H '%m\t%n'
error: invalid SI size formatter: %m\t%n
[1]    2682 segmentation fault (core dumped)  expac -H '%m\t%n'

Specifying the size formatter works as expected:

[~]% expac -H M '%m\t%n'
...

Info:

[~]% pacman -Qi expac
Name           : expac
Version        : 4-3
Description    : pacman database extraction utility
Architecture   : x86_64
URL            : http://github.com/falconindy/expac
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : pacman
Optional Deps  : None
Required By    : packer
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size :  29,00 KiB
Packager       : Dave Reisner <dreisner@archlinux.org>
Build Date     : Fr 19 Dez 2014 14:49:04 CET
Install Date   : Di 30 Dez 2014 23:33:54 CET
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature
falconindy commented 9 years ago

This is already fixed in git. See commit 41725289827500e8055014cd6126af877022dbaa

badboy commented 9 years ago

Thx.