aboutsummaryrefslogtreecommitdiff
path: root/trayfreq_set_interface.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-07-20 13:25:37 +1200
committerDavid <dbphillipsnz@gmail.com>2014-07-20 13:25:37 +1200
commit64091a89f410fc46918ee05a0226ccce90559328 (patch)
treeb25f054759dda2c94c87cc3d8facfd31bd6aaa45 /trayfreq_set_interface.c
parent0a915305a6481f3b9553511376358ab81a51724c (diff)
parentce5d47962ac628521a658f20b3f48aee7d041fe3 (diff)
downloadparamano-64091a89f410fc46918ee05a0226ccce90559328.tar.xz
Merge branch 'master' into stable
Conflicts: Makefile tray.c trayfreq.conf.src trayfreq_set_interface.c
Diffstat (limited to 'trayfreq_set_interface.c')
-rw-r--r--trayfreq_set_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trayfreq_set_interface.c b/trayfreq_set_interface.c
index 592c8c5..df168c6 100644
--- a/trayfreq_set_interface.c
+++ b/trayfreq_set_interface.c
@@ -25,7 +25,7 @@
void si_gov(char* gov, int core)
{
- char cmd[256];
+ char cmd[1024];
if (getuid() != ROOT_UID)
{
sprintf(cmd, SUDO" -n "TRAYFREQ_SET" -g %s -c %i &",gov,core);
@@ -38,7 +38,7 @@ void si_gov(char* gov, int core)
void si_freq(int freq, int core)
{
- char cmd[256];
+ char cmd[1024];
if (getuid() != ROOT_UID)
{
sprintf(cmd, SUDO" -n "TRAYFREQ_SET" -f %i -c %i &",freq,core);