aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--builtin.c6
-rw-r--r--env_universal_common.c3
-rw-r--r--env_universal_common.h2
-rw-r--r--reader.c2
4 files changed, 6 insertions, 7 deletions
diff --git a/builtin.c b/builtin.c
index 0aff1d7e..2dbb3be2 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2526,9 +2526,9 @@ static int builtin_source( wchar_t ** argv )
if( res )
{
sb_printf( sb_err,
- _( L"%ls: Error while reading file '%ls'\n" ),
- argv[0],
- argv[1]?argv[1]:L"<stdin>" );
+ _( L"%ls: Error while reading file '%ls'\n" ),
+ argv[0],
+ argv[1] );
}
/*
diff --git a/env_universal_common.c b/env_universal_common.c
index 4a9e3abb..988dbfbd 100644
--- a/env_universal_common.c
+++ b/env_universal_common.c
@@ -93,7 +93,7 @@
typedef struct var_uni_entry
{
int export; /**< Whether the variable should be exported */
- wchar_t val[0]; /**< The value of the variable */
+ wchar_t val[1]; /**< The value of the variable */
}
var_uni_entry_t;
@@ -113,7 +113,6 @@ void (*callback)( int type,
const wchar_t *key,
const wchar_t *val );
-
/**
Variable used by env_get_names to communicate auxiliary information
to add_key_to_hash
diff --git a/env_universal_common.h b/env_universal_common.h
index 166fb6b7..97edd711 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -112,7 +112,7 @@ typedef struct
/**
Message body. The message must be allocated using enough memory to actually contain the message.
*/
- char body[0];
+ char body[1];
}
message_t;
diff --git a/reader.c b/reader.c
index 4973dda9..0c6d5606 100644
--- a/reader.c
+++ b/reader.c
@@ -115,7 +115,7 @@ commence.
fish specific commands, meaning it will work even if fish is not
installed. This is used by read_i.
*/
-#define DEFAULT_PROMPT L"whoami; echo @; hostname|cut -d . -f 1; echo \" \"; pwd; printf '> ';"
+#define DEFAULT_PROMPT L"echo \"$USER@\"; hostname|cut -d . -f 1; echo \" \"; pwd; printf '> ';"
#define PROMPT_FUNCTION_NAME L"fish_prompt"