summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/plaparse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/plaparse.cpp')
-rw-r--r--src/lib/util/plaparse.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/util/plaparse.cpp b/src/lib/util/plaparse.cpp
index 76fbbad6983..09b7724375e 100644
--- a/src/lib/util/plaparse.cpp
+++ b/src/lib/util/plaparse.cpp
@@ -12,8 +12,6 @@
#include "plaparse.h"
-#include "osdcomm.h"
-
#include <cstdio>
#include <cstdlib>
#include <cstring>
@@ -214,11 +212,11 @@ static bool process_field(jed_data *data, const uint8_t **src, const uint8_t *sr
// find keyword
char dest[0x10];
- memset(dest, 0, ARRAY_LENGTH(dest));
+ memset(dest, 0, sizeof(dest));
const uint8_t *seek = *src;
int destptr = 0;
- while (seek < srcend && isalpha(*seek) && destptr < ARRAY_LENGTH(dest) - 1)
+ while (seek < srcend && isalpha(*seek) && destptr < sizeof(dest) - 1)
{
dest[destptr] = tolower(*seek);
seek++;