diff options
author | Roy Marples <roy@marples.name> | 2007-09-25 15:38:21 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-25 15:38:21 +0000 |
commit | 1e4e8ed27ae95096255283e92a75738bc7e296e5 (patch) | |
tree | 5f152e91cce64bc2c9b0c6336b4078e470ac14da /src/rc.c | |
parent | a2e5c4513e2955bc0a77c401ea12cc210eab305b (diff) |
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
Diffstat (limited to 'src/rc.c')
-rw-r--r-- | src/rc.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -359,11 +359,12 @@ static int do_options (int argc, char **argv) eerrorx ("%s: no option specified", applet); if (strcmp (applet, "get_options") == 0) { - char buffer[1024]; - memset (buffer, 0, 1024); - ok = rc_get_service_option (service, argv[0], buffer); - if (ok) - printf ("%s", buffer); + char *option = rc_get_service_option (service, argv[0]); + if (option) { + printf ("%s", option); + free (option); + ok = true; + } } else if (strcmp (applet, "save_options") == 0) ok = rc_set_service_option (service, argv[0], argv[1]); else |