summaryrefslogtreecommitdiffstats
path: root/src/misc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-03-15 10:10:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-03-15 10:10:22 +0100
commitf29f7ab54cbb930dbd551eed92cf78af30f9abf3 (patch)
treebf7c203122425dce3dbb9c249a0ae9b7e267da02 /src/misc.c
parentf3bdb0f39cc38916ed25e3fec0739e2d15193cfe (diff)
Fix various warnings
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 0fb5f56..8ac00d6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -177,7 +177,7 @@ https://msdn.microsoft.com/en-us/library/windows/desktop/ms724834%28v=vs.85%29.a
struct utsname Ver;
if(uname(&Ver)==0)
{
- static char buffer[100] = {0x00};
+ static char buffer[512] = {0x00};
snprintf(buffer, sizeof(buffer) - 1, "%s, kernel %s (%s) %s",
Ver.sysname, Ver.release, Ver.version, Ver.machine);
return buffer;