Preparations for v0.7.1 release
[libeap.git] / wpa_supplicant / wpa_cli.c
index 82d7ae2..7c6abcb 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * WPA Supplicant - command line interface for wpa_supplicant daemon
- * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2004-2010, Jouni Malinen <j@w1.fi>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -31,7 +31,7 @@
 
 static const char *wpa_cli_version =
 "wpa_cli v" VERSION_STR "\n"
-"Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi> and contributors";
+"Copyright (c) 2004-2010, Jouni Malinen <j@w1.fi> and contributors";
 
 
 static const char *wpa_cli_license =
@@ -1776,7 +1776,7 @@ static char * wpa_cli_cmd_gen(const char *text, int state)
        while ((cmd = wpa_cli_commands[i].cmd)) {
                i++;
                if (os_strncasecmp(cmd, text, len) == 0)
-                       return os_strdup(cmd);
+                       return strdup(cmd);
        }
 
        return NULL;
@@ -1887,7 +1887,7 @@ static void wpa_cli_interactive(void)
                        wpa_request(ctrl_conn, argc, argv);
 
                if (cmd != cmdbuf)
-                       os_free(cmd);
+                       free(cmd);
        } while (!wpa_cli_quit);
 
 #ifdef CONFIG_READLINE