Changes in trunk/src/sh_static.c [22:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_static.c
r22 r1 59 59 #endif 60 60 61 extern int sl_strlcpy(char * dst, /*@null@*/const char * src, size_t siz);62 extern int sl_strlcat(char * dst, /*@null@*/const char * src, size_t siz);63 61 64 62 … … 886 884 887 885 #ifdef DEBUG 888 /* flawfinder: ignore *//* definition of debug macro */889 886 #define DPRINTF(X,args...) fprintf(stderr, X, ##args) 890 887 #else … … 1197 1194 goto fail; 1198 1195 1199 s l_strlcpy(lookup,name,MAXDNAME);1196 strncpy(lookup,name,MAXDNAME); 1200 1197 BIGLOCK; 1201 1198 if (variant < __searchdomains && strchr(lookup, '.') == NULL) 1202 1199 { 1203 s l_strlcat(lookup,".", MAXDNAME);1204 s l_strlcat(lookup,__searchdomain[variant], MAXDNAME);1200 strncat(lookup,".", MAXDNAME); 1201 strncat(lookup,__searchdomain[variant], MAXDNAME); 1205 1202 } 1206 1203 BIGUNLOCK;
Note:
See TracChangeset
for help on using the changeset viewer.