Skip to content

Commit 5dda5a9

Browse files
author
Joachim Gabler
committed
fixed broken build (stncpy used instead of sge_strlcpy)
1 parent d84ad40 commit 5dda5a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/libs/uti/sge_component.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void set_uid(sge_component_user_t *user, uid_t uid) {
212212
*/
213213
static void set_unqualified_hostname(const char *unqualified_hostname) {
214214
if (unqualified_hostname != nullptr) {
215-
strncpy(component_ts0_data.unqualified_hostname, unqualified_hostname, sizeof(component_ts0_data.unqualified_hostname));
215+
sge_strlcpy(component_ts0_data.unqualified_hostname, unqualified_hostname, sizeof(component_ts0_data.unqualified_hostname));
216216
}
217217
}
218218

0 commit comments

Comments
 (0)