~ubuntu-branches/ubuntu/wily/libservicelog/wily-proposed

« back to all changes in this revision

Viewing changes to src/v29_print.c

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov, Frédéric Bonnard, Dimitri John Ledkov
  • Date: 2014-04-03 19:30:14 UTC
  • Revision ID: package-import@ubuntu.com-20140403193014-1k93vh2k36bd1ome
Tags: 1.1.14-0ubuntu1
[ Frédéric Bonnard ]
* Initial release.

[ Dimitri John Ledkov ]
* Improve initial packaging.
* Add myself to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
 
153
153
            if (newline != NULL) {
154
154
                prnt_len = newline - &tmpbuf[offset] + 1;
155
 
                snprintf(buf + buf_offset, prnt_len, &tmpbuf[offset]);
 
155
                snprintf(buf + buf_offset, prnt_len, "%s", &tmpbuf[offset]);
156
156
                buf_offset = strlen(buf);
157
157
                buf_offset += sprintf(buf + buf_offset, "\n");
158
158
                offset += prnt_len;
171
171
            }
172
172
 
173
173
            /* print up to the last brkpt */
174
 
            snprintf(buf + buf_offset, prnt_len, &tmpbuf[offset]);
 
174
            snprintf(buf + buf_offset, prnt_len, "%s", &tmpbuf[offset]);
175
175
            buf_offset = strlen(buf);
176
176
            buf_offset += sprintf(buf + buf_offset, "\n");
177
177
            offset += prnt_len;
180
180
 
181
181
    }
182
182
 
183
 
    prnt_len = sprintf(buf + buf_offset, &tmpbuf[offset]);
 
183
    prnt_len = sprintf(buf + buf_offset, "%s", &tmpbuf[offset]);
184
184
    line_offset += prnt_len;
185
185
 
186
 
    len = fprintf(stream, buf);
 
186
    len = fprintf(stream, "%s", buf);
187
187
 
188
188
    return len;
189
189
}