diff options
author | guy fleury iteriteka <hoonandon@gmail.com> | 2019-08-27 15:46:33 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-08-27 15:46:33 +0200 |
commit | c60fbb1eebb4bc2ff10c9ccfea05abc77db66067 (patch) | |
tree | 7d8731c01a62808b1bf7fb543048e47753cdfd30 /console-client | |
parent | 9d671eb4dcc340eaed67cad7e0a9828c82c82231 (diff) | |
download | hurd-c60fbb1eebb4bc2ff10c9ccfea05abc77db66067.tar.gz hurd-c60fbb1eebb4bc2ff10c9ccfea05abc77db66067.tar.bz2 hurd-c60fbb1eebb4bc2ff10c9ccfea05abc77db66067.zip |
generic-speaker: Fix array iteration
* console-client/generic-speaker.c (parse_opt): Fix getting array size.
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/generic-speaker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console-client/generic-speaker.c b/console-client/generic-speaker.c index c03cc47e..cd040df7 100644 --- a/console-client/generic-speaker.c +++ b/console-client/generic-speaker.c @@ -414,7 +414,7 @@ parse_opt (int key, char *arg, struct argp_state *state) unsigned int i; int found = 0; - for (i = 0; i < sizeof (*beep); i++) + for (i = 0; i < sizeof (beep) / sizeof (*beep); i++) { if (! strcasecmp (beep[i]->name, arg)) { |