diff options
author | 2019-06-05 11:14:19 +0200 | |
---|---|---|
committer | 2019-06-05 11:14:19 +0200 | |
commit | 85c445dbc0d3526ff2df263f1d48dbc67433cd10 (patch) | |
tree | 767cafae6dabfb56f47a4bfb79ef867e4285f016 /qatom.c | |
parent | libq/hash: fix compilation without HAVE_SSL and HAVE_BLAKE2B (diff) | |
download | portage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.tar.gz portage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.tar.bz2 portage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.zip |
libq/atom: retain all input in atom_format_r
Copy the remainder, as well as data before and inbetween expandos.
Bug: https://bugs.gentoo.org/687416
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qatom.c')
-rw-r--r-- | qatom.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,6 +4,7 @@ * * Copyright 2005-2008 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2014 Mike Frysinger - <vapier@gentoo.org> + * Copyright 2018- Fabian Groffen - <grobian@gentoo.org> */ #include "main.h" @@ -41,9 +42,9 @@ int qatom_main(int argc, char **argv) while ((i = GETOPT_LONG(QATOM, qatom, "")) != -1) { switch (i) { - case 'F': format = optarg; break; + case 'F': format = optarg; break; case 'c': action = _COMPARE; break; - case 'p': action = _PRINT; break; + case 'p': action = _PRINT; break; COMMON_GETOPTS_CASES(qatom) } } |