Package Details: monica 3.7-7

Git Clone URL: https://aur.archlinux.org/monica.git (read-only, click to copy)
Package Base: monica
Description: Monitor calibration tool
Upstream URL: https://sources.archlinux.org/other/monica/
Licenses: BSD
Submitter: arojas
Maintainer: None
Last Packager: TrialnError
Votes: 2
Popularity: 0.000000
First Submitted: 2020-05-01 19:25 (UTC)
Last Updated: 2023-09-07 22:16 (UTC)

Latest Comments

iusemanjarobtw commented on 2022-09-04 20:26 (UTC) (edited on 2022-09-04 20:45 (UTC) by iusemanjarobtw)

To fix the errors pass "%s" as the second argument to the fprintf() on the corresponding lines as follows:

fprintf(f_w, "%s", buffer);

tyjak commented on 2022-04-02 19:39 (UTC) (edited on 2022-04-02 19:42 (UTC) by tyjak)

Same error for me... 5.17.1-arch1-1

Poncho commented on 2022-02-17 21:37 (UTC)

fails to build on 5.16.9-arch1-1

monica.cpp: In function ‘int add_monicarc_to_startup()’:
monica.cpp:1303:37: error: format not a string literal and no format arguments [-Werror=format-security]
 1303 |                 } else fprintf(f_w, buffer);
      |                                     ^~~~~~
monica.cpp:1357:33: error: format not a string literal and no format arguments [-Werror=format-security]
 1357 |                    fprintf(f_w, mod_buffer);
      |                                 ^~~~~~~~~~
monica.cpp:1360:38: error: format not a string literal and no format arguments [-Werror=format-security]
 1360 |                  } else fprintf(f_w, buffer);
      |                                      ^~~~~~
monica.cpp:1361:32: error: format not a string literal and no format arguments [-Werror=format-security]
 1361 |            } else fprintf(f_w, buffer);
      |                                ^~~~~~
monica.cpp: In function ‘void clean_file(std::string, std::string)’:
monica.cpp:1397:42: error: format not a string literal and no format arguments [-Werror=format-security]
 1397 |                             fprintf(f_w, buffer);
      |                                          ^~~~~~
In file included from /usr/include/string.h:535,
                 from /usr/include/FL/fl_utf8.h:35,
                 from /usr/include/FL/Fl.H:32,
                 from monica.cpp:2:
In function ‘strncpy’,
    inlined from ‘exec_xgamma(Rgb, char*)’ at monica.cpp:1190:12:
/usr/include/bits/string_fortified.h:95:34: warning: ‘strncpy’ output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make: *** [Makefile:18: monica.o] Error 1
make: Leaving directory '/home/johan/.cache/yay/monica/src/monica-3.7'
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: monica