diff options
author | 2006-04-21 22:15:47 +0000 | |
---|---|---|
committer | 2006-04-21 22:15:47 +0000 | |
commit | 00fc4aa18fd0ef76bb13be540154d665d511c6a0 (patch) | |
tree | 27f1f617cb9252cfbcabc1a6840417cec3497d6b /qglsa.c | |
parent | flesh out more features (diff) | |
download | portage-utils-00fc4aa18fd0ef76bb13be540154d665d511c6a0.tar.gz portage-utils-00fc4aa18fd0ef76bb13be540154d665d511c6a0.tar.bz2 portage-utils-00fc4aa18fd0ef76bb13be540154d665d511c6a0.zip |
make sure we write a new line to the glsa file
Diffstat (limited to 'qglsa.c')
-rw-r--r-- | qglsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2006 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qglsa.c,v 1.5 2006/04/21 03:14:51 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qglsa.c,v 1.6 2006/04/21 22:15:47 vapier Exp $ * * Copyright 2005-2006 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org> @@ -31,7 +31,7 @@ static const char *qglsa_opts_help[] = { "Mark specified GLSAs as fixed", COMMON_OPTS_HELP }; -static const char qglsa_rcsid[] = "$Id: qglsa.c,v 1.5 2006/04/21 03:14:51 vapier Exp $"; +static const char qglsa_rcsid[] = "$Id: qglsa.c,v 1.6 2006/04/21 22:15:47 vapier Exp $"; #define qglsa_usage(ret) usage(ret, QGLSA_FLAGS, qglsa_long_opts, qglsa_opts_help, lookup_applet_idx("qglsa")) @@ -58,7 +58,7 @@ static void qglsa_append_to_list(const char *glsa) { FILE *f; if ((f = fopen(QGLSA_DB, "a")) != NULL) { - fwrite(glsa, 1, strlen(glsa), f); + fprintf(f, "%s\n", glsa); fclose(f); } } |