fixed radclient.c compile error
authorjahir <jh.github@hirsch.ws>
Mon, 27 Apr 2015 09:18:24 +0000 (11:18 +0200)
committerjahir <jh.github@hirsch.ws>
Mon, 27 Apr 2015 09:18:24 +0000 (11:18 +0200)
gcc with -Werror=format-security doesn't like printf without string literal

src/main/radclient.c

index 65c7a5c..4e04d0c 100644 (file)
@@ -934,7 +934,7 @@ int main(int argc, char **argv)
                        timeout = atof(optarg);
                        break;
                case 'v':
-                       printf(radclient_version);
+                       printf("%s", radclient_version);
                        exit(0);
                        break;
                case 'x':