aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-02-08 12:48:39 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-02-11 01:05:09 +0200
commit7d66c4700490508768cae3cd474a63db2fb9f142 (patch)
tree741cf4496427299deccae8df09c46d3b8912bc85
parentf5aea684ce51fc1c3df13de14bb017ea2b73d39d (diff)
src: Fix iteration over actions
Minor bug-fix for avoiding printing items over what the array can handle. Bug-AGL: SPEC-4673 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I770d8d0abba3537bfd32eef36ab13ca705706a0e
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 24f3288..dc3dd82 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
break;
fprintf(stderr, "Unknown action passed. Possible actions:\n\t");
- for (size_t i = 0; ARRAY_LENGTH(actions); i++)
+ for (size_t i = 0; i < ARRAY_LENGTH(actions); i++)
fprintf(stderr, " %s ", actions[i].name);
help(argv);