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