Staging
v0.5.2
https://github.com/git/git
Revision 18023c20656265364d4d1805f435e8420ab70687 authored by Horst H. von Brand on 28 March 2008, 14:09:04 UTC, committed by Junio C Hamano on 21 May 2008, 20:05:50 UTC
Need to quote all special characters, not just the first one

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e4d594c
Raw File
Tip revision: 18023c20656265364d4d1805f435e8420ab70687 authored by Horst H. von Brand on 28 March 2008, 14:09:04 UTC
Fix recipient santitization
Tip revision: 18023c2
pkt-line.h
#ifndef PKTLINE_H
#define PKTLINE_H

#include "git-compat-util.h"

/*
 * Silly packetized line writing interface
 */
void packet_flush(int fd);
void packet_write(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3)));

int packet_read_line(int fd, char *buffer, unsigned size);
ssize_t safe_write(int, const void *, ssize_t);

#endif
back to top