mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
styling changes and remove temporary comment
This commit is contained in:
parent
d4e0be7176
commit
b2bc69f926
@ -799,7 +799,7 @@ cmd_script(ProfWin *window, const char *const command, gchar **args)
|
|||||||
|
|
||||||
/* escape a string into csv and write it to the file descriptor */
|
/* escape a string into csv and write it to the file descriptor */
|
||||||
static int
|
static int
|
||||||
writecsv(int fd, const char *const str){
|
_writecsv(int fd, const char *const str){
|
||||||
if(!str) return 0;
|
if(!str) return 0;
|
||||||
size_t len = strlen(str);
|
size_t len = strlen(str);
|
||||||
char *s = malloc(2 * len * sizeof(char));
|
char *s = malloc(2 * len * sizeof(char));
|
||||||
@ -821,8 +821,6 @@ gboolean
|
|||||||
cmd_export(ProfWin *window, const char *const command, gchar **args)
|
cmd_export(ProfWin *window, const char *const command, gchar **args)
|
||||||
{
|
{
|
||||||
if(args[0]){
|
if(args[0]){
|
||||||
/* temporary, we SHOULD pass everything to an escape function (to escape out quotes)
|
|
||||||
* and then use fputs */
|
|
||||||
int fd = open(args[0], O_WRONLY | O_CREAT, 00600);
|
int fd = open(args[0], O_WRONLY | O_CREAT, 00600);
|
||||||
GSList *list = NULL;
|
GSList *list = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user