summaryrefslogtreecommitdiffstats
path: root/source/script-dialog.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2014-09-06 14:57:30 +0200
committerQC <qball@gmpclient.org>2014-09-06 14:57:30 +0200
commit15bee1f543f25aca5b794678c20bc0a03c11c376 (patch)
treed421cd7839751dc9f45bdab45ba9930defa75472 /source/script-dialog.c
parent10322b45a5510d257e5f7509f0ee2ec2cb6ae4ee (diff)
Add source files and man page.
* Add bugtracker to manpage. * Print msg to stderr, when error dialog not available.
Diffstat (limited to 'source/script-dialog.c')
-rw-r--r--source/script-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/script-dialog.c b/source/script-dialog.c
index b4dca016..efde4caf 100644
--- a/source/script-dialog.c
+++ b/source/script-dialog.c
@@ -73,7 +73,6 @@ pid_t execute_generator ( char * cmd )
static char **get_script_output ( char *command, unsigned int *length )
{
- char buffer[1024];
char **retv = NULL;
*length = 0;
@@ -81,6 +80,7 @@ static char **get_script_output ( char *command, unsigned int *length )
if ( fd >= 0 ) {
FILE *inp = fdopen ( fd, "r" );
if ( inp ) {
+ char buffer[1024];
while ( fgets ( buffer, 1024, inp ) != NULL ) {
retv = g_realloc ( retv, ( ( *length ) + 2 ) * sizeof ( char* ) );
retv[( *length )] = g_strdup ( buffer );