search for: val_len

Displaying 8 results from an estimated 8 matches for "val_len".

2011 Jun 21
1
[nut-commits] svn commit r3048 - branches/nut-scanner/tools/nut-scanner
...ot;%s\"", > - response->variables->val.string); > + /* get the name aof the device and add "" */ > + memset(buf,0,sizeof(buf)); > + buf[0] = '"'; > + memcpy(buf+1,response->variables->val.string, > + response->variables->val_len); > + buf[1+response->variables->val_len] = '"'; > add_option_to_device(dev,"desc",buf); > add_option_to_device(dev,"mibs",snmp_device_table[index].mib); > /* SNMP v3 */ What is the reason to switch from the (buffer overflow) safe '...
2003 Jun 25
3
patch draft for extended attributes on linux
...Attributes in the filesystem are a map of NAME:VALUE pairs, + * retrieved one at a time. + * + * Attributes are serialized to a byte stream when transferred across + * the network. This list is very simple: + * + * constant int 0x0a0aa0a0 + * repeat + * int name_len + * char name[] + * int val_len + * char val[] + * + * The list is terminated by a single uint32 zero. + * + * The constant is there as a little protection against protocol + * mistakes. + * + * Attributes also have to be stored in memory as part of the file + * list in between reading them in and applying them to the file. + *...
2014 Jan 13
0
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...create registry key and value that contain > + a zero character */ > + > +#include <ntdef.h> > +#include <stdio.h> > +#include <ddk/wdm.h> > +#include <windef.h> > + > +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* val, int val_len) > +{ > + UNICODE_STRING key_name = { key_len, key_len, key }; > + UNICODE_STRING value_name = { val_len, val_len, val }; > + OBJECT_ATTRIBUTES key_obj; > + InitializeObjectAttributes (&key_obj, &key_name, > + OBJ_OPENIF | OBJ_CASE_INSENSIT...
2014 Jan 10
14
[PATCH 1/7] Add a minimal hive with "special" keys and values
...,0 +1,59 @@ +/* use the NT native API to create registry key and value that contain + a zero character */ + +#include <ntdef.h> +#include <stdio.h> +#include <ddk/wdm.h> +#include <windef.h> + +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* val, int val_len) +{ + UNICODE_STRING key_name = { key_len, key_len, key }; + UNICODE_STRING value_name = { val_len, val_len, val }; + OBJECT_ATTRIBUTES key_obj; + InitializeObjectAttributes (&key_obj, &key_name, + OBJ_OPENIF | OBJ_CASE_INSENSITIVE, +...
2014 Jan 14
2
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...gt; > + a zero character */ > > + > > +#include <ntdef.h> > > +#include <stdio.h> > > +#include <ddk/wdm.h> > > +#include <windef.h> > > + > > +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* > val, int val_len) > > +{ > > + UNICODE_STRING key_name = { key_len, key_len, key }; > > + UNICODE_STRING value_name = { val_len, val_len, val }; > > + OBJECT_ATTRIBUTES key_obj; > > + InitializeObjectAttributes (&key_obj, &key_name, > > +...
2014 Jan 10
4
[PATCH] Add a minimal hive with "special" keys and values
--- images/README | 15 +++++++++++++++ images/mkzero/Makefile | 7 +++++++ images/mkzero/mkzero.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ images/special | Bin 0 -> 8192 bytes 4 files changed, 70 insertions(+) create mode 100644 images/mkzero/Makefile create mode 100644 images/mkzero/mkzero.c create mode 100644 images/special diff --git a/images/README
2019 Jan 22
2
Newbie - SNMP-UPS Driver Issue
...ivers/snmp-ups.c:783:10: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] for(cp = pdu->variables->val.string, x = 0; x < (int)pdu->variables->val_len; x++, cp++) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/deantrasente/Documents/GitHub/nut/drivers/snmp-ups.c:2911:46: error: use of undeclared identifier 'CONFPATH' snprintf(fn, sizeof(fn), "%s/snmp/%s.conf", CONFPATH, mib);...
2009 Jul 17
0
Wine release 1.1.26
...mDocumentMgrs. taskmgr: Update Japanese resource. sane: Add Japanese resource. msvidc32: Add Japanese resource. iccvid: Add Japanese resource. devenum: Add Japanese resource. sane: Remove BOM from Japanese resource. gdi32: In init_system_links, reinitialize val_len and data_len before continuing. Aurimas Fi?eras (7): crypt32: Add "Disallowed" to CryptFindLocalizedName. Various spelling fixes for Lithuanian translation. cryptui: Add Lithuanian translation. crypt32: Add Lithuanian translation. cryptdlg: Translate "C...