diff options
author | Kalle Wallin <kaw@linux.se> | 2004-07-13 21:10:06 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-07-13 21:10:06 +0000 |
commit | 9a500d13055f16b70796a5fce5ec6de4a2844187 (patch) | |
tree | 8f57c14c8454ee836597cc47ed7eedd3b6f4dabe /src/main.c | |
parent | e9f21b11c862ad168bb5a850730861e01ad6f3d8 (diff) | |
download | mpd-9a500d13055f16b70796a5fce5ec6de4a2844187.tar.gz mpd-9a500d13055f16b70796a5fce5ec6de4a2844187.tar.xz mpd-9a500d13055f16b70796a5fce5ec6de4a2844187.zip |
Use glib's str functions (g_strlcat, g_strlcpy, g_snprintf, g_strdup_vprintf)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1868 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 1cba667bf..ece1ad593 100644 --- a/src/main.c +++ b/src/main.c @@ -99,11 +99,11 @@ update_xterm_title(void) strfsong(tmp, BUFSIZE, options.xterm_title_format, song); } else - strncpy(tmp, PACKAGE " version " VERSION, BUFSIZE); + g_strlcpy(tmp, PACKAGE " version " VERSION, BUFSIZE); - if( strcmp(title,tmp) ) + if( strncmp(title,tmp,BUFSIZE) ) { - strncpy(title, tmp, BUFSIZE); + g_strlcpy(title, tmp, BUFSIZE); set_xterm_title(title); } } |