projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00e60c3
)
fix typos
author
Philip Kovacs
<pkovacs@users.sourceforge.net>
Thu, 17 Nov 2005 03:46:22 +0000
(
03:46
+0000)
committer
Philip Kovacs
<pkovacs@users.sourceforge.net>
Thu, 17 Nov 2005 03:46:22 +0000
(
03:46
+0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@417
7f574dfc
-610e-0410-a909-
a81674777703
src/freebsd.c
patch
|
blob
|
history
diff --git
a/src/freebsd.c
b/src/freebsd.c
index
5484c51
..
14694f2
100644
(file)
--- a/
src/freebsd.c
+++ b/
src/freebsd.c
@@
-376,7
+376,7
@@
void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
{
int state;
- if ( !p_client_buffer !! client_buffer_size <= 0 )
+ if ( !p_client_buffer || client_buffer_size <= 0 )
return;
if (GETSYSCTL("hw.acpi.acline", state)) {
@@
-387,9
+387,9
@@
void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
if (state)
- strncpy( p_client_buffer, client_buffer_size, "Running on AC Power" );
+ strncpy( p_client_buffer, "Running on AC Power", client_buffer_size );
else
- strncpy( p_client_buffer, client_buffer_size, "Running on battery" );
+ strncpy( p_client_buffer, "Running on battery", client_buffer_size );
return;
}