diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-10-30 00:56:46 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-10-30 00:56:46 +0000 |
commit | 521c4866183b318c41d20892e47486990b5fde36 (patch) | |
tree | 66db423c76c9ba3f6690ba38aa90b8c5b554ca56 /libgps.c | |
parent | 6ceba5725f1d924a3e2cd927f41301574320bcd5 (diff) | |
download | gpsd-521c4866183b318c41d20892e47486990b5fde36.tar.gz |
No unbounded string functions.
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -539,7 +539,7 @@ int gps_query(struct gps_data_t *gpsdata, const char *fmt, ... ) (void)vsnprintf(buf, sizeof(buf)-2, fmt, ap); va_end(ap); if (buf[strlen(buf)-1] != '\n') - (void)strcat(buf, "\n"); + (void)strlcat(buf, "\n", BUFSIZ); if (write(gpsdata->gps_fd, buf, strlen(buf)) <= 0) return -1; return gps_poll(gpsdata); |