diff options
author | David <dbphillipsnz@gmail.com> | 2014-06-12 17:25:40 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-06-12 17:25:40 +1200 |
commit | de88a7b12c2fccd7989655629afc9d6de4dc7b66 (patch) | |
tree | 5b3b537895e76d674945d15a934d67fa0fe964fb /trayfreq_set_interface.c | |
parent | 776add29dfe65b6a73bd2e9513df09795ab86084 (diff) | |
download | paramano-de88a7b12c2fccd7989655629afc9d6de4dc7b66.tar.xz |
Adjusted max command length to (effectively) infinity
Diffstat (limited to 'trayfreq_set_interface.c')
-rw-r--r-- | trayfreq_set_interface.c | 4 |
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); |