Merged silc_1_0_branch to trunk.
[silc.git] / lib / silcutil / win32 / silcwin32util.c
index fef2f8fb687c895124ff0c77a23d840db727be8d..7bc2d69a98981964d1109786057a0bf657252052 100644 (file)
@@ -4,12 +4,11 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2001 Pekka Riikonen
+  Copyright (C) 2001 - 2005 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
+  the Free Software Foundation; version 2 of the License.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -65,7 +64,7 @@ int silc_gettimeofday(struct timeval *tv)
 char *silc_get_username(void)
 {
   DWORD maxlen = 128;
-  char username[maxlen];
+  char username[128];
   GetUserName(username, &maxlen);
   return strdup(username);
 }