Imported Upstream version 2.7
[ossec-hids.git] / src / addagent / read_from_user.c
index 9b84c76..c46d158 100755 (executable)
@@ -1,11 +1,12 @@
-/* @(#) $Id: read_from_user.c,v 1.6 2009/06/24 17:06:20 dcid Exp $ */
+/* @(#) $Id: ./src/addagent/read_from_user.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
 
@@ -22,7 +23,7 @@ char *read_from_user()
 {
     memset(__user_buffer, '\0', USER_SIZE +1);
 
-    if((fgets(__user_buffer, USER_SIZE -1, stdin) == NULL) || 
+    if((fgets(__user_buffer, USER_SIZE -1, stdin) == NULL) ||
        (strlen(__user_buffer) >= (USER_SIZE -2)))
     {
         printf(INPUT_LARGE);