opnsense-ports/sysutils/apachetop/files/patch-src_apachetop.cc
Franco Fichtner 9f1182f5f5 */*: sync with upstream
Taken from: HardenedBSD
2018-02-04 12:49:34 +01:00

20 lines
489 B
C++

--- src/apachetop.cc.orig 2005-10-15 16:23:31 UTC
+++ src/apachetop.cc
@@ -271,7 +271,7 @@ int main(int argc, char *argv[])
hm->create(cf.circle_size);
/* }}} */
- memset(&gstats, (char) NULL, sizeof(gstats));
+ memset(&gstats, 0, sizeof(gstats));
gstats.start = time(NULL);
signal(SIGINT, &catchsig);
@@ -465,7 +465,7 @@ int main(int argc, char *argv[])
continue;
}
- *nextline = (char) NULL;
+ *nextline = '\0';
++nextline;
/* which parser? */