1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix the build. fstrterminate was used in one place.

Jeremy.
(This used to be commit 0ccd87c56b)
This commit is contained in:
Jeremy Allison 2007-12-03 15:47:30 -08:00
parent b9342eaaa6
commit a22487025d

View File

@ -179,7 +179,7 @@ static bool parse_lpq_bsd(char *line,print_queue_struct *buf,bool first)
fstrcat(buf->fs_file, tok[i]);
}
/* Ensure null termination. */
fstrterminate(buf->fs_file);
buf->fs_file[sizeof(buf->fs_file)-1] = '\0';
}
#ifdef PRIOTOK
@ -314,7 +314,7 @@ static bool parse_lpq_lprng(char *line,print_queue_struct *buf,bool first)
fstrcat(buf->fs_file, tokarr[i]);
}
/* Ensure null termination. */
fstrterminate(buf->fs_file);
buf->fs_file[sizeof(buf->fs_file)-1] = '\0';
}
return True;