X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=wpa_supplicant%2Fwpa_cli.c;h=7c6abcb781af2dea5b982c2f466d802f606ad347;hb=dff0f701d0f280f93c5c7698ef0f8e16dbbe815a;hp=82d7ae2732c733907979534df26f5b16522ef23d;hpb=90973fb2fd4d9d3a6982e42581b08fafc145877b;p=libeap.git diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 82d7ae2..7c6abcb 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -1,6 +1,6 @@ /* * WPA Supplicant - command line interface for wpa_supplicant daemon - * Copyright (c) 2004-2009, Jouni Malinen + * Copyright (c) 2004-2010, Jouni Malinen * * 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 and contributors"; +"Copyright (c) 2004-2010, Jouni Malinen 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