From 7cce7ea857321c854fc9e061edee3a32f4831d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Thu, 16 Sep 2021 12:32:59 +0300 Subject: Rename, Update Docs and Prepare for Release (#9) Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com> Co-authored-by: NRK Co-authored-by: Arthur Williams Co-authored-by: eylles --- thumbs.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index 3aa03fb..1850f52 100644 --- a/thumbs.c +++ b/thumbs.c @@ -1,22 +1,22 @@ /* Copyright 2011 Bert Muennich * - * This file is part of sxiv. + * This file is a part of nsxiv. * - * sxiv is free software; you can redistribute it and/or modify + * nsxiv is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * - * sxiv is distributed in the hope that it will be useful, + * nsxiv is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with sxiv. If not, see . + * along with nsxiv. If not, see . */ -#include "sxiv.h" +#include "nsxiv.h" #define _THUMBS_CONFIG #include "config.h" @@ -172,10 +172,11 @@ void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, dsuffix = "/.cache"; } if (homedir != NULL) { + const char *s = "/nsxiv"; free(cache_dir); - len = strlen(homedir) + strlen(dsuffix) + 6; + len = strlen(homedir) + strlen(dsuffix) + strlen(s) + 1; cache_dir = (char*) emalloc(len); - snprintf(cache_dir, len, "%s%s/sxiv", homedir, dsuffix); + snprintf(cache_dir, len, "%s%s%s", homedir, dsuffix, s); } else { error(0, 0, "Cache directory not found"); } @@ -272,7 +273,7 @@ bool tns_load(tns_t *tns, int n, bool force, bool cache_only) ExifContent *ifd; ExifByteOrder byte_order; int tmpfd; - char tmppath[] = "/tmp/sxiv-XXXXXX"; + char tmppath[] = "/tmp/nsxiv-XXXXXX"; Imlib_Image tmpim; if ((ed = exif_data_new_from_file(file->path)) != NULL) { -- cgit v1.2.3